acronym
Generate your very own acronyms!
Use it for generating version tags, committee designations, or even band names!
Uses more-words.
Install
$ npm install --save acronym
Usage
Generate acronym from a string:
// => 'Nice Promise Mistakes'
Generate acronym from an array of strings:
const words = 'wut' 'bird' 'noodle';// => [ 'Wins Unapproved Thrilled',// => 'Boring Irresistibile Raptures Disaster',// => 'Novel Oversell Outcry Devastated Lack Endorse' ]
Options
Pass in options via a second parameter to the acronym()
function
capitalize
Determines wether the first letter of each word in the acronym will be capital. Default is true
.
const options = capitalize: true// => 'No Pleasure Misbehaving'
const options = capitalize: false// => 'no profiteer misreporting'
separator
Determines the string between each word in the acronyn. Default is a single space.
const options = separator: ', '// => 'Nasty, Preventing, Mocked'
const options = separator: '-' capitalize: false// => 'needy-positive-mercy'
License
MIT © Pat Lillis