header-case

Transform into a dash separated string of capitalized words

Use `import { trainCase } from change-case`
Last updated a year ago by blakeembrey .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install header-case 
SYNC missed versions from official npm registry.

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

Current Tags

  • 3.0.0                                ...           latest (a year ago)

8 Versions

  • 3.0.0 [deprecated]           ...           a year ago
  • 2.0.4                                ...           4 years ago
  • 2.0.3                                ...           5 years ago
  • 2.0.2                                ...           5 years ago
  • 2.0.1                                ...           5 years ago
  • 2.0.0                                ...           5 years ago
  • 1.0.1                                ...           8 years ago
  • 1.0.0                                ...           8 years ago
Maintainers (1)
Downloads
Total 3
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (0)
None

© 2010 - cnpmjs.org x YWFE | Home | YWFE