0.18.3 • Published 20 days ago
@thzero/library_id_nanoid v0.18.3
library_id_nanoid
This library uses the https://github.com/ai/nanoid package to generate long ids (21 length) and short (16 length) ids based on https://github.com/ai/nanoid with the default character set.
Requirements
NodeJs
NodeJs version 18+
Installation
Options
The following options can be set.
- Utility.setIdGeneratorAlphabet - sets a custom alphabet for nanoid use, be sure to read https://zelark.github.io/nano-id-cc.
- Utility.setIdGeneratorLengthLong - sets the length of the long id generation, be sure to read https://zelark.github.io/nano-id-cc.
- Utility.setIdGeneratorLengthShort - sets the length of the short id generation, be sure to read https://zelark.github.io/nano-id-cc.