MaKeS eVeRy OtHeR lEtTeR cApItaLiZeD.
var aids = require('aids')
aids('hello world')
// => 'HeLlO wOrLd'
aids('hello world', true)
// => 'hElLo WoRlD'
Install aids into your project
npm install --save aids
Turn the source into alternating capital and lowercase letters.
source
(String
): The source you want to turn into aids text.offset
(Boolean
): Start capitalizing on the second letter.
aids('hello world')
// => 'HeLlO wOrLd'
aids('hello world', true)
// => 'hElLo WoRlD'
Do whatever you want.