sentence-case
Sentence Case
Sentence case a string. Explicitly adds a single underscore between groups of numbers to maintain readability and reversibility (E.g. 1.20.5
becomes 1_20_5
, not 1205
), by default.
Supports Unicode (non-ASCII characters) and non-string entities, such as objects with a toString
property, numbers and booleans. Empty values (null
and undefined
) will result in an empty string.
Installation
Node
npm install sentence-case --save
Usage
var sentenceCase = //=> "String" //=> "Dot case" //=> "Pascal case" //=> "Version 1 2 10" //=> "Strıng 1 2"
Typings
Includes a TypeScript definition.
License
MIT