Simple, flexible and efficient generation of probably unique identifiers (puid, aka random strings) of intuitively specified entropy using pre-defined or custom characters.
Error in title is given when trying to import from 'puid-js'. I don't know if it's a bug or if it's my environment (VS Code, TS, pnpm), but I don't have this issue with any other packages.
Other information
Using this workaround for now: import { puid } from 'puid-js/build/module'
The ability to get the raw binary of a puid, and to convert between string and binary representations. I'd like to store it as a binary in SQLite and only occasionally represent it as a string to end-users.
Edit:
I've reconsidered, and think I'll instead create custom binary IDs using crypto.getRandomValues(uint8array) and write my own stringify and parse functions around that. I don't know if there's a need for such functionality in your library?