text-param-case
v1.0.2
Published
Convert into a lower cased text with dashes between words
Downloads
11,686
Maintainers
Readme
Param Case
Transform into a lower cased text with dashes between words.
Installation
npm install text-param-case --save
Usage
import { paramCase } from "text-param-case";
paramCase("string"); //=> "string"
paramCase("dot.case"); //=> "dot-case"
paramCase("PascalCase"); //=> "pascal-case"
paramCase("camelCase"); //=> "camel-case"
paramCase("version 1.2.3"); //=> "version-1-2-3"
The function also accepts options
.
License
MIT