Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 526 Bytes

Readme.md

File metadata and controls

29 lines (18 loc) · 526 Bytes

to-capital-case

Convert a string to a capital case.

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