Try this out on this live example
To Use Hexa Pocket Secret Phrase Generator Package Install:
npm i hexa_secret_phrase_generator
Import Hexa Pocket Secret Phrase Generator Package in your code:
var hexa_phrase = require("hexa_secret_phrase_generator");
Generate 5 words phrase:
console.log(hexa.getPhrase_5())
Generate 10 words phrase:
console.log(hexa.getPhrase_10())
Generate 12 words phrase:
console.log(hexa.getPhrase_12())
Output the Version of the package:
console.log(hexa.hexa_pocket_secret_phrase_generator_version())