Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including param-case with all npm packages installed. Try it out:

var paramCase = require("param-case")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

param-case v3.0.3

Transform into a lower cased string with dashes between words

Param Case

NPM version NPM downloads Bundle size

Transform into a lower cased string with dashes between words.

Installation

npm install param-case --save

Usage

import { paramCase } from "param-case";

paramCase("string"); //=> "string"
paramCase("dot.case"); //=> "dot-case"
paramCase("PascalCase"); //=> "pascal-case"
paramCase("version 1.2.10"); //=> "version-1-2-10"

The function also accepts options.

License

MIT

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free