blob: 72b1437f21157bd4d8bad156665ec44ea5d257cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# titleize [![Build Status](https://travis-ci.org/sindresorhus/titleize.svg?branch=master)](https://travis-ci.org/sindresorhus/titleize)
> Capitalize every word in a string: `unicorn cake` → `Unicorn Cake`
## Install
```sh
$ npm install --save titleize
```
## Usage
```js
var titleize = require('titleize');
titleize('foo bar');
//=> Foo Bar
titleize('foo-bar');
//=> Foo-Bar
```
## License
MIT © [Sindre Sorhus](http://sindresorhus.com)
|