orc-me
v1.1.9
Published
Generate a random orc name
Downloads
59
Maintainers
Readme
orc-me
- 👹 NPM package to generate random orc names
- See examples below
Install NPM
$ npm i orc-me
Usage
- Returns a
string
containing a random orc name
Examples
const orcMe = require('orc-me');
function capitalizeFirstLetter(string) {
return string.charAt(0).toUpperCase() + string.slice(1);
};
const orcThreeNames = capitalizeFirstLetter(orcMe()) + ' ' + capitalizeFirstLetter(orcMe()) + ' ' + capitalizeFirstLetter(orcMe());
const orcTwoNames = capitalizeFirstLetter(orcMe()) + ' ' + capitalizeFirstLetter(orcMe());
console.log('Orc battle started!');
console.log(orcThreeNames + ' ⚔️ ' + orcTwoNames);