# 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

```
$ npm install --save titleize
```


## Usage

```js
const titleize = require('titleize');

titleize('foo bar');
//=> 'Foo Bar'

titleize('foo-bar');
//=> 'Foo-Bar'
```


## License

MIT © [Sindre Sorhus](http://sindresorhus.com)
