Skip to content

Latest commit

 

History

History
46 lines (32 loc) · 1.14 KB

README.md

File metadata and controls

46 lines (32 loc) · 1.14 KB

sentencecase.js

Build Status Coverage NPM version NPM downloads

Small and fast library to convert a paragraph to sentence case.

Installation

$ npm install --save sentencecase.js

or

$ yarn add sentencecase.js

Usage

const toSentenceCase = require("sentencecase.js");
const paragraph = 'she\'s a cOOl person. dogs ARE loyal Friends! Aren\'t tHEy? pErIoD.';
console.log(toSentenceCase(paragraph));
// She's a cool person. Dogs are loyal friends! Aren't they? Period.

Testing

npm test

or

yarn test

LICENSE

MIT