orc-me
TypeScript icon, indicating that this package has built-in type declarations

1.1.9 • Public • Published

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);

Result of the example above


Package Sidebar

Install

npm i orc-me

Weekly Downloads

7

Version

1.1.9

License

MIT

Unpacked Size

6.78 kB

Total Files

7

Last publish

Collaborators

  • tutyamxx