This package has been deprecated

Author message:

Use `change-case`

sentence-case
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/sentence-case package

4.0.0 • Public • Published

Sentence Case

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

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i sentence-case

    Weekly Downloads

    6,207,584

    Version

    4.0.0

    License

    MIT

    Unpacked Size

    3.23 kB

    Total Files

    5

    Last publish

    Collaborators

    • blakeembrey