0.4.0 • Published 6 years ago

case-dash v0.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

case-dash NPM version Build Status Dependency Status Coverage percentage

Parse and stringify strings delimited by a dash

Installation

$ npm install --save case-dash

Usage

const caseDash = require("case-dash");

// Parse
caseDash.parse("this-is-an-example"); // ['this', 'is', 'an', 'example']

// Stringify
caseDash.stringify(["this", "is", "an", "example"]); // 'this-is-an-example'

// Check
caseDash.is("this-is-an-example"); // True
caseDash.is("this_is_an_example"); // False
caseDash.is("thisIsAnExample"); // False
caseDash.is("this"); // False

License

MIT © Malte-Maurice Dreyer

0.4.0

6 years ago

0.3.0

9 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.0

9 years ago