Skip to content

franklingu/sentencecase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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