Skip to content

baggo/aids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Preston
Apr 20, 2017
4261043 · Apr 20, 2017

History

12 Commits
Nov 8, 2016
Apr 20, 2017
Nov 26, 2016
Nov 8, 2016
Apr 20, 2017
Nov 8, 2016

Repository files navigation

Aids

MaKeS eVeRy OtHeR lEtTeR cApItaLiZeD.

aids is missing

var aids = require('aids')

aids('hello world')
// => 'HeLlO wOrLd'

aids('hello world', true)
// => 'hElLo WoRlD'

Installation

Install aids into your project

npm install --save aids

Usage

aids(source, [offset])

Turn the source into alternating capital and lowercase letters.

Parameters

  • source (String): The source you want to turn into aids text.
  • offset (Boolean): Start capitalizing on the second letter.

Example

aids('hello world')
// => 'HeLlO wOrLd'

aids('hello world', true)
// => 'hElLo WoRlD'

License

Do whatever you want.

About

MaKeS eVeRy OtHeR lEtTeR cApItAlIzEd

Resources

License

Stars

Watchers

Forks

Packages

No packages published