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"

/hyphenate/

    Package Sidebar

    Install

    npm i hyphenate

    Weekly Downloads

    1,661

    Version

    0.2.5

    License

    MIT

    Unpacked Size

    4.44 kB

    Total Files

    6

    Last publish

    Collaborators

    • vilicvane