JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9415495
  • Score
    100M100P100Q56147F
  • License MIT

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

Package Exports

  • sentence-case

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sentence-case) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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"

License

MIT