UNPKG

verbal-id

Version:

JS library to generate unique identifiers consisting of words that are pronounceable, distinguishable and inclusive.

15 lines (11 loc) 381 B
let verbaluuid = require("../index.js") let words = verbaluuid.create("31337"); if (words === "magazine skill dragon awake") { console.log("Created successfully!"); } let number = verbaluuid.parse(words); if (number === "31337") { console.log("Parsed successfully!"); } let randomId = verbaluuid.create(); console.log(`A random ID for you: ${randomId}`);