capitalizes-the-first-letter-of-each-word
v1.0.1
Published
A simple function that makes the first letters of each words capitalised
Downloads
2
Readme
Author: Amit Kumar
capitalizes-the-first-letter-of-each-word.
This function works as follows: 1 It splits the input string into words. 2 It capitalizes the first letter of each word. 3 It joins the capitalized words back into a single string with spaces in between.
npm i capitalizes-the-first-letter-of-each-word
Eg:- let capitalizes = require('capitalizes-the-first-letter-of-each-word');
let capitalisedStrings= capitalizes.capitalisedString("hello word") console.log(capitalisedStrings)