hyphenate
TypeScript icon, indicating that this package has built-in type declarations

0.2.5 • Public • Published

Hyphenate Build Status

A simple helper function that splits and then joins words back together.

Install

yarn add hyphenate

Usage

import hyphenate from 'hyphenate';
 
hyphenate('hello, world!'); // "hello-world"
hyphenate('JSONDataItems'); // "JSON-Data-Items"
hyphenate('JSONDataItems', {lowerCase: true}); // "json-data-items"

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.2.5
    1,496
    • latest

Version History

Package Sidebar

Install

npm i hyphenate

Weekly Downloads

1,603

Version

0.2.5

License

MIT

Unpacked Size

4.44 kB

Total Files

6

Last publish

Collaborators

  • vilicvane