0.2.5 • Published 4 years ago

hyphenate v0.2.5

Weekly downloads
1,592
License
MIT
Repository
github
Last release
4 years ago

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"