Skip to content
This repository has been archived by the owner on Jul 23, 2021. It is now read-only.

Teacup plugin to transform camelCase attribute names to kebab-case

License

Notifications You must be signed in to change notification settings

goodeggs/teacup-camel-to-kebab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Teacup Camel to Kebab

Teacup plugin to transform camelCase attribute names to kebab-case.

NPM version Build Status

If you use camelCase attributes, they render as kebab-case.

teacup = require 'teacup'
camelToKebab = require 'teacup-camel-to-kebab'
teacup.use camelToKebab

{render, button} = teacup

console.log render ->
  button
    ngClick: 'executeCallback()',
    myCustomDirective: 'data',
    'Click Me'
# Outputs <button ng-click="executeCallback()" my-custom-directive="data">Click Me</button>

Contributing

$ git clone https://github.com/goodeggs/teacup-camel-to-kebab && cd teacup-camel-to-kebab
$ npm install
$ npm test

Code of Conduct

Code of Conduct for contributing to or participating in this project.

License

MIT

Module scaffold generated by generator-goodeggs-npm.

About

Teacup plugin to transform camelCase attribute names to kebab-case

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published