Package Exports
- text-param-case
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (text-param-case) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
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