node-id

1.1.3 • Public • Published

node-id

A random unique id generator

Quick Start

Install dependency

npm i node-id

Import dependency

import nodeid from 'node-id';

or

const nodeid = require('node-id');

Initialize variable

let uniqueId = nodeid();

Use id

console.log(uniqueId);
# b733982913edaacc625d864b

or

Manually input length of id from 8 to 50 characters

let uniqueId = nodeid(20);
# 387d952ec2f47b64d48b

App Info

Author

Olabiran Joshua Olaiya Mainjoe

License

This project is licensed under the MIT Lincense

Package Sidebar

Install

npm i node-id

Weekly Downloads

9

Version

1.1.3

License

MIT

Unpacked Size

2.98 kB

Total Files

4

Last publish

Collaborators

  • mainjoe