Socket
Socket
Sign inDemoInstall

@tahawy111/randomid.js

Package Overview
Dependencies
0
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @tahawy111/randomid.js

Very Amazing function to create Random Unique Id


Version published
Maintainers
1
Created

Readme

Source

randomid.js

Very Amazing function to create Random Unique Id

Install

npm install @tahawy111/randomid.js

Usage

import randomid from "@tahawy111/randomid.js";

// just call the funcion like below

console.log(new RandomId().randomid()); // returns => ym0kg4cy16rk7t2z674w4y6yh3
console.log(new RandomId().randomid()); // returns => gqacpenixft8frhy3nck6nzvse
console.log(new RandomId().randomid()); // returns => ep6j4prd03tlm1mddy3pqocnzx
console.log(new RandomId().randomid()); // returns => 7873cbd6ot4obj8npalbac10fw
console.log(new RandomId().randomid()); // returns => tkuu48b787m07vzw3czveu67mc
console.log(new RandomId().randomid()); // returns => hqtm4xlkrf3yq0rnlcuk6uvo3b
console.log(new RandomId().randomid()); // returns => 3li7mna467wa4vtb7g437y73j4

Also u can get random unique numbers

import randomid from "@tahawy111/randomid.js";

// just call the funcion like below

console.log(new RandomId().randomUniqueNumbers(6)); // returns => 521851

Also u can get random unique numbers

import randomid from "@tahawy111/randomid.js";

// just call the funcion like below

console.log(new RandomId().randomUniqueArrayOfNumbers(6)); // returns => [209740, 263661, 797886, 622969, 682373, 569858]

Also u can get Random Time Stamp

import randomid from "@tahawy111/randomid.js";

// just call the funcion like below

console.log(new RandomId().randomTimeStamp()); // returns => 309843909687909

ths length of randomid is 26 ♥♥♥

Keywords

FAQs

Last updated on 28 May 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc