selfcarebot/node_modules/header-case
2023-03-30 06:02:54 +00:00
..
dist Added main bot functionality 2023-03-30 06:02:54 +00:00
dist.es2015 Added main bot functionality 2023-03-30 06:02:54 +00:00
LICENSE Added main bot functionality 2023-03-30 06:02:54 +00:00
package.json Added main bot functionality 2023-03-30 06:02:54 +00:00
README.md Added main bot functionality 2023-03-30 06:02:54 +00:00

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