0.4.0 • Published 6 years ago

case-separated v0.4.0

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

case-separated NPM version Build Status Dependency Status Coverage percentage

Parse and stringify strings delimited by a certain string (such as _)

Installation

$ npm install --save case-separated

Usage

const { CaseSeparated } = require("case-separated");
const caseSeparated = new CaseSeparated("-");

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

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

// check
caseSeparated.is("this-is-an-example"); // true
caseSeparated.is("thisIsAnExample"); // false
caseSeparated.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.0

9 years ago

0.1.0

9 years ago