Generate random numbers and strings!
Docs »
Report Bug
·
Request Feature
npm install --save @naseelniyas/unique_id
yarn add @naseelniyas/unique_id
const unique = require('@naseelniyas/unique_id');
//Change the number for a different max value
const num = unique.uniqueInt(500);
console.log(num)
const unique = require('@naseelniyas/unique_id');
const str = unique.uniqueString()
console.log(str)
const unique = require('@naseelniyas/unique_id');
//Sample array with sample data
const arr = ['unique', 'string', 'array', 'javascript is awesome'];
const uniqueValue = unique.uniqueFromArray(arr);
console.log(uniqueValue);
const unique = require('@naseelniyas/unique_id');
const num = unique.zeroToOne();
console.log(num);
Repository Url: https://github.com/NaseelNiyas/unique_id
Naseel Niyas from techharvesting