text-sentence-case
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • 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

Package Sidebar

Install

npm i text-sentence-case

Weekly Downloads

1,980

Version

1.0.2

License

MIT

Unpacked Size

6.98 kB

Total Files

7

Last publish

Collaborators

  • dimetrix