New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

minicall

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minicall

*Extremely **minimalistic** and **simple** task scheduler built in just 2 hours due to frustration with the bugs, dependencies, and heavy bundle weight of the current popular task scheduler libraries in JavaScript.* 😤

latest
Source
npmnpm
Version
1.1.3
Version published
Weekly downloads
3
200%
Maintainers
1
Weekly downloads
 
Created
Source

Minimalistic JS task scheduler 🛵

Extremely minimalistic and simple task scheduler built in just 2 hours due to frustration with the bugs, dependencies, and heavy bundle weight of the current popular task scheduler libraries in JavaScript. 😤

This library is very humble and doesn't compete in terms of features, but it is simple 🎈:

  • Supports both browser and node environments.
  • Only requires two simple parameters, with no useless ones.
  • Has no dependencies and is lightweight, with a size of only 1.6kB. 🕊️
  • No unexpected schedule, no bugs, no nonsense.

Installation

yarn add minicall

Quick start

import minicall from 'minicall'

const task = new minicall({
    time: ["12:34:56", "22:22:22"], //Based on UTC time 
    execute: () => console.log('task to execute'),
})

task.start()

With a filter

import minicall from 'minicall'

const task = new minicall({
    time: ["03:00:00"],
    execute: () => console.log('task to execute'),
    filter: (): boolean => [1, 3, 5].includes(new Date().getDay()) //only on Monday, Wednesday and Friday.
})

task.start()

FAQs

Package last updated on 02 Feb 2023

Did you know?

Socket

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