orc-me
v1.3.3
Published
👹 Generate a random orc name
Maintainers
Readme
orc-me 👹
- 👹 NPM package to generate random orc names
- ✨ Get awesome orc names for your projects!
- 👹 An orc name is created by starting with a harsh consonant sound (like
gr,kr,th, orsh), followed by a short, heavy vowel (a,o, oru), and usually ending with another hard consonant (g,k,r, orz). Sometimes an extra harsh sound is added at the end to make the name feel more brutal. - ⭐ Updated the version using a custom
orc phoneme grammarto avoid hardcoded array of names. - ♻️ Works seamlessly with
CommonJS,ESMandTypeScript
Install NPM 📦
$ npm i orc-me
Usage 📜
- Returns a
stringcontaining a random orc name
Examples 💻
CommonJS
const orcMe = require('orc-me');
const orcThreeNames = `${orcMe()} ${orcMe()} ${orcMe()}`;
const orcTwoNames = `${orcMe()} ${orcMe()}`;
console.log('Orc battle started! ⚔️');
console.log(orcThreeNames + ' ⚔️ ' + orcTwoNames);ESM
import orcMe from 'orc-me';
const orcThreeNames = `${orcMe()} ${orcMe()} ${orcMe()}`;
const orcTwoNames = `${orcMe()} ${orcMe()}`;
console.log('Orc battle started! ⚔️');
console.log(orcThreeNames + ' ⚔️ ' + orcTwoNames);TypeScript
import orcMe from 'orc-me';
const orcThreeNames: string = `${orcMe()} ${orcMe()} ${orcMe()}`;
const orcTwoNames: string = `${orcMe()} ${orcMe()}`;
console.log('Orc battle started! ⚔️');
console.log(`${orcThreeNames} ⚔️ ${orcTwoNames}`);