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

0.3.0 • Public • Published

fakelish

npm Build Status

Fake English word generator

Install

npm i -S fakelish

Usage

Here is an usage in JavaScript.

// Import fakelish
const fakelish = require("fakelish");
 
// Min and max Lengths of fake words
const minLen = 7;
const maxLen = 11;
 
(async ()=>{
  // Generate 20 fake words
  for(let i = 0; i < 20; i++) {
    // Generate a fake word
    const fakeWord = await fakelish.generateFakeWord(minLen, maxLen);
    // Print the capitalized fake word
    console.log(capitalize(fakeWord));
  }
})();
 
// Capitalize string
function capitalize(str) {
  return str.charAt(0).toUpperCase() + str.substring(1);
}

(example/src/example1.js)

The output should be like the following.

Schyperant
Imposillack
Tioughters
Schgruids
Viestios
Mundrial
Unkalphast
Mireock
Babrilly
Formalated
Gimbrawer
Trident
Compler
Ligical
Deprene
Ocoarriete
Raxalluffic
Pecties
Daeorhons
Herbalve

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.3.0
    21
    • latest

Version History

Package Sidebar

Install

npm i fakelish

Weekly Downloads

23

Version

0.3.0

License

MIT

Unpacked Size

5.95 MB

Total Files

18

Last publish

Collaborators

  • nwtgck