node-capitalize
To capitalize the first letter or first letter of all words in a string.
Installation
To install node-capitalize, use npm:
npm i node-capitalize -S
Usage
; ;/* 'Your only limit is you' */ ;/* 'Your Only Limit Is You' */ ;/* 'Your only limit is you' */ ;/* `I'm feeling curious` */
Options
string
- define the string to capitalize. (default: 32)words
- define whether the output should be capitalize first letter in each word. (default: false) [OPTIONAL]
Tests
npm install
npm test