Formats from one generator
ENCODINGSSame ID space, four presentations. base32 is the one to reach for in a URL a human might type; compact suits opaque keys.
import { createGenerator } from '@code_with_sachin/uusid/browser';
const gen = createGenerator({ prefix: 'user', separator: '-' });
gen.generate(); // prefixed, standard layout
gen.base32(); // 'H7VJMYEUAII7DM6CKGCJIVKFK4' — shorter, case-insensitive
gen.urlSafe(); // no separators, safe in a path segment
gen.compact(); // separators stripped
gen.withSeparator('_'); // same ID, different joint (Node entry)