Wondering what’s next for npm?Check out our public roadmap! »

header-caseTypeScript icon, indicating that this package has built-in type declarations

2.0.4 • Public • Published

Header Case

NPM version NPM downloads Bundle size

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

Install

npm i header-case

DownloadsWeekly Downloads

1,566,928

Version

2.0.4

License

MIT

Unpacked Size

10.3 kB

Total Files

15

Last publish

Collaborators

  • avatar