text-header-case
v1.0.2
Published
Convert into a dash separated text of capitalized words
Downloads
11,609
Maintainers
Readme
Header Case
Transform into a dash separated text of capitalized words
Installation
npm install text-header-case --save
Usage
import { headerCase } from "text-header-case";
headerCase("string"); //=> "String"
headerCase("dot.case"); //=> "Dot-Case"
headerCase("PascalCase"); //=> "Pascal-Case"
headerCase("camelCase"); //=> "Camel-Case"
headerCase("version 1.2.3"); //=> "Version-1-2-3"
The function also accepts options
.
License
MIT