@f/hyphenate

1.0.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    38
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    38

Package Sidebar

Install

npm i @f/hyphenate

Weekly Downloads

7

Version

1.0.0

License

MIT

Last publish

Collaborators

  • f