1.0.0 • Published 10 years ago
@f/hyphenate v1.0.0
hyphenate
Turn a camel-case string into a hyphenated string
Installation
$ npm install @f/hyphenateUsage
var hyphenate = require('@f/hyphenate')
hyphenate('backgroundColor') === 'background-color'API
hyphenate(str)
str- The string you want to hyphenate
Returns: str, lowercased and hyphenated
License
MIT
1.0.0
10 years ago