@ounch/custom-nanoid-gene
v1.2.3
Published
simple nanoid generator
Downloads
11
Readme
Ounch NPM nanoId Generator
Reusable npm package to generate customized nanoId
Usage
To use the package, you need to import the package after installing it.
const GenerateToken = require('custom-nanoid-gene');
Optional - you can add the prefaired string length:
GenerateToken(10)
Also you have to define the random string base in .env file:
APP_RANDOM_CODE_STRING= '1234567890ABCDEFGHIJKLMNPQRSUVWXYZabcdefghjklmnpqrstuvwxyz'