sentencecase.js

1.0.4 • Public • Published

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

Package Sidebar

Install

npm i sentencecase.js

Weekly Downloads

38

Version

1.0.4

License

MIT

Unpacked Size

147 kB

Total Files

7

Last publish

Collaborators

  • franklingu