# titleize

> Capitalize every word in a string: `unicorn cake` → `Unicorn Cake`

Latest version **4.0.0** (published 2023-08-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install titleize
pnpm add titleize
yarn add titleize
bun add titleize
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.0.0 |
| Published | 2023-08-31 |
| First published | 2015-01-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >=18 |
| Dependencies | 0 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sindre Sorhus |
| Maintainers | sindresorhus |
| Keywords | titleize, title, capitalize, uppercase, case, dash, hyphen, string, text, convert |

## Links

- npm: https://www.npmjs.com/package/titleize
- Repository: https://github.com/sindresorhus/titleize
- Homepage: https://github.com/sindresorhus/titleize#readme
- Issues: https://github.com/sindresorhus/titleize/issues
- Funding: https://github.com/sponsors/sindresorhus
- npm.io page: https://npm.io/package/titleize

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 4.0.0 (latest) — 2023-08-31
- 3.0.0 — 2021-04-22
- 2.1.0 — 2019-04-01
- 2.0.0 — 2019-03-05
- 1.0.1 — 2018-03-23
- 1.0.0 — 2015-01-20

## README

# titleize

> Capitalize every word in a string: `unicorn cake` → `Unicorn Cake`

## Install

```sh
npm install titleize
```

## Usage

```js
import titleize from 'titleize';

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

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

## Related

- [camelcase](https://github.com/sindresorhus/camelcase) - Convert a dash/dot/underscore/space separated string to camelcase

---
_Source: https://npm.io/package/titleize · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
