Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Convert a string to a capital case.
JavaScript CSS
Tag: 0.0.1

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
.gitignore
History.md
Makefile
Readme.md
component.json
index.js

Readme.md

to-capital-case

Convert a non-capital-case string to a capital-case string.

Installation

$ component install ianstormtaylor/to-capital-case

Example

var capital = require('to-capital-case');

capital('camelCase');       // "Camel Case"
capital('space case');      // "Space Case"
capital('snake_case');      // "Snake Case"
capital('dot.case');        // "Dot Case"
capital('some*weird[case'); // "Some Weird Case"

API

toCapitalCase(string)

Returns the capital-case variant of a string.

License

MIT

Something went wrong with that request. Please try again.