Have ideas to improve npm?Join in the discussion! »

text-param-case
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Param Case

NPM version NPM downloads Bundle size

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

Install

npm i text-param-case

DownloadsWeekly Downloads

78

Version

1.0.2

License

MIT

Unpacked Size

6.03 kB

Total Files

7

Last publish

Collaborators

  • avatar