sentence-case
Transform into a lower case with spaces between words, then capitalize the string
Last updated 5 years ago by blakeembrey .
MIT · Repository · Bugs · Original npm
$ cnpm install sentence-case 
SYNC missed versions from official npm registry.

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

Current Tags

  • 3.0.4                                ...           latest (5 years ago)

4 Versions

  • 3.0.4                                ...           5 years ago
  • 3.0.3                                ...           6 years ago
  • 2.1.1                                ...           8 years ago
  • 1.1.3                                ...           10 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (3)
Dev Dependencies (10)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org