JSPM

text-param-case

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3062
  • Score
    100M100P100Q120382F
  • License MIT

Convert into a lower cased text with dashes between words

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

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