Miss any of our Open RFC calls?Watch the recordings here! »

text-sentence-case

1.0.0 • Public • Published

Sentence Case

NPM version NPM downloads Bundle size

Transform into a lower case with spaces between words, then capitalize text

Installation

npm install text-sentence-case --save

Usage

import { sentenceCase } from "text-sentence-case";
 
sentenceCase("string"); //=> "String"
sentenceCase("dot.case"); //=> "Dot case"
sentenceCase("PascalCase"); //=> "Pascal case"
sentenceCase("camelCase"); //=> "Camel case"
sentenceCase("version 1.2.3"); //=> "Version 1 2 3"

The function also accepts options.

License

MIT

Install

npm i text-sentence-case

DownloadsWeekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

5.74 kB

Total Files

6

Last publish

Collaborators

  • avatar