https://github.com/mattstypa/ucwords-js
Uppercase the first character of each word in a string
https://github.com/mattstypa/ucwords-js
Last synced: 3 months ago
JSON representation
Uppercase the first character of each word in a string
- Host: GitHub
- URL: https://github.com/mattstypa/ucwords-js
- Owner: MattStypa
- License: mit
- Created: 2017-11-10T15:28:28.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-13T14:06:49.000Z (over 7 years ago)
- Last Synced: 2025-04-09T05:47:48.446Z (3 months ago)
- Language: JavaScript
- Size: 32.2 KB
- Stars: 8
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UCWORDS for javascript
[](https://travis-ci.org/MattStypa/ucwords-js)
[](https://www.npmjs.com/package/ucwords)
[](https://www.npmjs.com/package/ucwords)
[](https://www.npmjs.com/package/ucwords)Uppercase the first character of each word in a string.
```javascript
const ucwords = require('ucwords');
ucwords('hello world'); // 'Hello World'
```Inspired by [Jeffrey Way](https://twitter.com/jeffrey_way)
