0.3.0 • Published 6 years ago
case-dot v0.3.0
case-dot
Parse and stringify strings delimited by a dot
Installation
$ npm install --save case-dot
Usage
const caseDot = require("case-dot");
// Parse
caseDot.parse("this.is.an.example"); // ['this', 'is', 'an', 'example']
// Stringify
caseDot.stringify(["this", "is", "an", "example"]); // 'this.is.an.example'
// Check
caseDot.is("this.is.an.example"); // True
caseDot.is("this_is_an_example"); // False
caseDot.is("thisIsAnExample"); // False
caseDot.is("this"); // False
License
MIT © Malte-Maurice Dreyer