Skip to content

vilicvane/hyphenate

Repository files navigation

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"

About

A simple helper function that hyphenates phrases.

Resources

Stars

Watchers

Forks

Packages

No packages published