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

Comparing version 1.0.1 to 1.0.2

src/index.js

2

package.json
{
"name": "uuid-cron",
"version": "1.0.1",
"version": "1.0.2",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

# uuid-cron
Generate random uuids in a given time
# Quickstart
1. **Install**
```shell
npm install uuid-cron
```
2. **Init cron job**
```javascript
const { init, uuidv4CronLimited } = 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**
```javascript
const randomUUID = uuidv4CronLimited();
```
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