@f/hyphenate

Turn a camel-case string into a hyphenated string

Stats

StarsIssuesVersionUpdatedCreatedSize
@f/hyphenate
001.0.06 years ago6 years agoMinified + gzip package size for @f/hyphenate in KB

Readme

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.