Skip to content

Manipulate strings to give you the format you need: capitalized/non-capitalized per word etc...

License

Notifications You must be signed in to change notification settings

dvoaviarison/format-title

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

format-title

Build Status

Manipulate strings to give you the title format you need: capitalized/non-capitalized per word etc...

Try me

You can try and see the result realtime HERE

API List

capWords(string)
capFirstWord(string)
capAll(string)
capCamelize(string)
lowWords(string)
lowFirstWord(string)
lowAll(string)
lowCamelize(string)

Example

Capitalize each word

var formatTitle = require('format-title');
console.log(formatTitle.capWords('this is my title'));
// > This Is My Title

Capitalize first word only

var formatTitle = require('format-title');
console.log(formatTitle.capFirstWord('this is my title'));
// > This is my title

Capitalize all (trivial)

var formatTitle = require('format-title');
console.log(formatTitle.capAll('this is my title'));
// > THIS IS MY TITLE

About

Manipulate strings to give you the format you need: capitalized/non-capitalized per word etc...

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published