named-ids
v1.0.2
Published
A library to generate random, seedable, short human readable strings similar to or in place of an ID.
Downloads
11
Readme
Named Ids
Makes generating one-way randomized-but-readable identifiers easy.
Usage
Import
// ES6
import { getNamedId, getNameIdParts } from 'named-ids';
// Node
const { getNamedId, getNameIdParts } = require('named-ids');
Generate random generated names
getNamedId();
// "fishy otters"
getNamedId();
// "twitchy pigs"
Seeded randoms produce same result every time
getNamedId("ABC");
// "rowdy rhinos"
getNamedId("ABC");
// "rowdy rhinos"
getNamedId("XYZ");
// "fat turtles"
getNamedId("XYZ");
// "fat turtles"
Seeded randoms produce same result every time
getNamedId("ABC");
// "rowdy rhinos"
getNamedId("ABC");
// "rowdy rhinos"
getNamedId("XYZ");
// "fat turtles"
getNamedId("XYZ");
// "fat turtles"