1.0.0 • Published 8 years ago

@f/hyphenate v1.0.0

Weekly downloads
51
License
MIT
Repository
github
Last release
8 years ago

hyphenate

Build status Git tag NPM version Code style

Turn a camel-case string into a hyphenated string

Installation

$ npm install @f/hyphenate

Usage

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