Skip to main content

Examples

Using ESM

import anonymus from "anonymus";

console.log(anonymus.create());
//=> ['Orange panda']

console.log(anonymus.create(5));
//=> ['Red hummingbird',
// 'White frog',
// 'Pink jellyfish',
// 'Sapphire kangaroo',
// 'Black dog']

console.log(anonymus.create(anonymus.sizeMax));
//=> Creates all unique possibilities.

Using CommonJS

const anonymus = require("anonymus");

console.log(anonymus.create());
//=> ['Orange panda']

console.log(anonymus.create(5));
//=> ['Red hummingbird',
// 'White frog',
// 'Pink jellyfish',
// 'Sapphire kangaroo',
// 'Black dog']

console.log(anonymus.create(anonymus.sizeMax));
//=> Creates all unique possibilities.