js-sentencecase
JavaScript convert string to Sentence case - Use for both Node.JS and Browser.
Installation
$ npm install --save js-sentencecase
or
$ yarn add js-sentencecase
Usage
Node.JS
const toSentenceCase = ; console; // => Stringconsole; // => Camel caseconsole; // => Param caseconsole; // => Pascal caseconsole; // => Upper caseconsole; // => Snake caseconsole; // => Sentence caseconsole; // => Title caseconsole; // => // Dot case console; // => ''console; // => ''console; // => '' console; // => Abc 123 x yzconsole; // => 123 abc def 12console; // => Tab spaceconsole; // => 123 abc 123 123console; // => Abc xy z g123hconsole; // => Define x 15console; // => 123456789
Browser
1. NPM Package
<!-- Or use minified -->
2. Download from source
Usage
API
toSentenceCase(str)
Returns a new string which is sentencecase format of str.
Dependencies
No dependencies