random-alias
v1.0.0
Published
Generate random combinations of colors, nouns and adjectives.
Downloads
3
Maintainers
Readme
Random Alias Generator
Sample
const { randomAlias } = require("random-alias")
const schemaExample = [
{
fromList: 'colors',
minLetters: 1,
maxLetters: 10,
},
{
fromList: 'adjectives',
minLetters: 1,
maxLetters: 10,
},
{
fromList: 'nouns',
minLetters: 1,
maxLetters: 10,
},
];
const optionsExample = {
delimiter: ' ',
possibilityCount: true
}
const alias = randomAlias(schemaExample, optionsExample)
console.log(alias)
// Ouput
// { word: 'loud convinced thongs', possibilities: 11811517172 }