text-sentence-case
v1.0.2
Published
Convert into a lower case with spaces between words, then capitalize text
Downloads
11,453
Maintainers
Readme
Sentence Case
Transform into a lower case with spaces between words, then capitalize text
Installation
npm install text-sentence-case --save
Usage
import { sentenceCase } from "text-sentence-case";
sentenceCase("string"); //=> "String"
sentenceCase("dot.case"); //=> "Dot case"
sentenceCase("PascalCase"); //=> "Pascal case"
sentenceCase("camelCase"); //=> "Camel case"
sentenceCase("version 1.2.3"); //=> "Version 1 2 3"
The function also accepts options
.
License
MIT