text-capital-case
v1.0.2
Published
Convert into a space separated text with each word capitalized
Downloads
11,379
Maintainers
Readme
Capital Case
Transform into a space separated text with each word capitalized.
Installation
npm install text-capital-case --save
Usage
import { capitalCase } from "text-capital-case";
capitalCase("string"); //=> "String"
capitalCase("dot.case"); //=> "Dot Case"
capitalCase("PascalCase"); //=> "Pascal Case"
capitalCase("camelCase"); //=> "Camel Case"
capitalCase("version 1.2.3"); //=> "Version 1 2 3"
The function also accepts options
.
License
MIT