This package has been deprecated

Author message:

Use `change-case`

capital-case

2.0.0 • Public • Published

Capital Case

Transform into a space separated string with each word capitalized.

Installation

npm install capital-case --save

Usage

import { capitalCase } from "capital-case";

capitalCase("string"); //=> "String"
capitalCase("dot.case"); //=> "Dot Case"
capitalCase("PascalCase"); //=> "Pascal Case"
capitalCase("version 1.2.10"); //=> "Version 1 2 10"

The function also accepts options.

License

MIT

Package Sidebar

Install

npm i capital-case

Weekly Downloads

5,407,832

Version

2.0.0

License

MIT

Unpacked Size

3.05 kB

Total Files

5

Last publish

Collaborators

  • blakeembrey