Socket
Socket
Sign inDemoInstall

uuid-cron

Package Overview
Dependencies
69
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    uuid-cron

Generate random uuids in a given time


Version published
Maintainers
1
Created

Readme

Source

uuid-cron

Generate random uuids in a given time

Quickstart

1. Install

npm install uuid-cron

2. Init cron job

const { init, uuidv4CronLimited, stop } = require('uuid-cron');
// run cron job every 20 seconds with 30 random uuids each time.
// for the first param, read for more details: https://www.npmjs.com/package/human-to-cron
init('each 20 seconds', 30);

3. Get random uuid according to the init params

const randomUUID = uuidv4CronLimited();

4. stop the cron job on finish

stop();

FAQs

Last updated on 15 Oct 2021

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