UNPKG

node-id

Version:
57 lines (36 loc) 761 B
# node-id A random unique id generator ## Quick Start ### Install dependency ```bash npm i node-id ``` ### Import dependency ```bash import nodeid from 'node-id'; ``` or ```bash const nodeid = require('node-id'); ``` ### Initialize variable ```bash let uniqueId = nodeid(); ``` ### Use id ```bash console.log(uniqueId); # b733982913edaacc625d864b ``` or ### Manually input length of id from 8 to 50 characters ```bash let uniqueId = nodeid(20); # 387d952ec2f47b64d48b ``` ## App Info ### Author Olabiran Joshua Olaiya [Mainjoe](https://olabiranjoshua.netlify.app/) ### License This project is licensed under the [MIT](https://github.com/olabiranj/node-id/blob/master/LICENSE) Lincense