Nascent Plasticine Materialist
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

sentence-case

3.0.3 • Public • Published

Sentence Case

NPM version NPM downloads Bundle size

Transform into a lower case with spaces between words, then capitalize the string.

Installation

npm install sentence-case --save

Usage

import { sentenceCase } from "sentence-case";
 
sentenceCase("string"); //=> "String"
sentenceCase("dot.case"); //=> "Dot case"
sentenceCase("PascalCase"); //=> "Pascal case"
sentenceCase("version 1.2.10"); //=> "Version 1 2 10"

The function also accepts options.

License

MIT

Install

npm i sentence-case

DownloadsWeekly Downloads

1,601,078

Version

3.0.3

License

MIT

Unpacked Size

12.1 kB

Total Files

15

Last publish

Collaborators

  • avatar