|
пре 2 година | |
---|---|---|
.. | ||
dist | пре 2 година | |
dist.es2015 | пре 2 година | |
LICENSE | пре 2 година | |
README.md | пре 2 година | |
package.json | пре 2 година |
Transform into a dash separated string of capitalized words.
npm install header-case --save
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
.
MIT