JSPM

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

Transform into a dash separated string of capitalized words

Package Exports

  • header-case

Readme

Header Case

Transform into a dash separated string of capitalized words.

Installation

npm install header-case --save

Usage

import { headerCase } from "header-case";

headerCase("string"); //=> "String"
headerCase("dot.case"); //=> "Dot-Case"
headerCase("PascalCase"); //=> "Pascal-Case"
headerCase("version 1.2.10"); //=> "Version-1-2-10"

The function also accepts options.

License

MIT