hyphenate
v0.2.5
Published
A simple helper function that hyphenates phrases.
Downloads
9,650
Readme
Hyphenate
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"