Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
A job scheduler with elegant syntax.
🚧 Project currently is still in development. Documentation and more features will be delivered soon!
You can install minuette using Yarn:
yarn add minuette
or NPM:
npm i minuette
Public
constructor Minuette()
Creates a new instance of minuette. Can be called as a regular function. Note that minuette sets date and time relative to your system date/time parameters.
.once(dateOrDay) -> {Minuette}
Sets a Job destination date using given day of week or date.
.at(time) -> {Minuette}
Sets a time to run action.
.do(action, args, ctx) -> {Job}
Minimal example of usage:
import minuette from "minuette"
// Will execute given functinon at next nearest friday at 21 hour.
minuette().once("friday").at("9pm").do(() => console.log("Hello, world!"))
An example with absolute date:
import minuette from "minuette"
// Will execute given action at next 31 Oct, in 23:00
minuette().once("31 Oct").at("23:00").do(() => console.log("Boooo!"))
You can optionally omit setting of a date or time. In this case, minuette will use current date or time.
For example:
import minuette from "minuette"
// Will execute this action in same day as `new Date()`
minuette().at("10pm").do(() => console.log("This message appers in 22 hour"))
.once()
, .at()
and .do()
methods for proof-of-concept implementation;.repeat()
and .each()
methods + supports of executing actions many times.in()
that will support alternative time or date setting relative to Date.now()
.pause()
, .resume()
, .stop()
and .reset()
FAQs
A job scheduler with elegant syntax.
The npm package minuette receives a total of 3 weekly downloads. As such, minuette popularity was classified as not popular.
We found that minuette demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.