capital-case

Transform into a space separated string with each word capitalized

Use `change-case`
Last updated 3 years ago by blakeembrey .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install capital-case 
SYNC missed versions from official npm registry.

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

Current Tags

  • 2.0.0                                ...           latest (3 years ago)

6 Versions

  • 2.0.0 [deprecated]           ...           3 years ago
  • 1.0.4                                ...           6 years ago
  • 1.0.3                                ...           7 years ago
  • 1.0.2                                ...           7 years ago
  • 1.0.1                                ...           7 years ago
  • 1.0.0                                ...           7 years ago
Maintainers (1)
Downloads
Total 22
Today 0
This Week 0
This Month 13
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE