1.0.2 • Published 4 years ago

text-sentence-case v1.0.2

Weekly downloads
71
License
MIT
Repository
github
Last release
4 years ago

Sentence Case

NPM version NPM downloads Bundle size

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