teacup-camel-to-kebab

1.0.0 • Public • Published

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
 
{renderbutton} = 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.

Readme

Keywords

Package Sidebar

Install

npm i teacup-camel-to-kebab

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • goodeggs-admin
  • hurrymaplelad