
Research
/Security News
Popular Tinycolor npm Package Compromised in Supply Chain Attack Affecting 40+ Packages
Malicious update to @ctrl/tinycolor on npm is part of a supply-chain attack hitting 40+ packages across maintainers
Your applications also deserve a nap.
npm i pancho
pancho
returns a promise, making it easy to control your program's flow after "waking up".
pancho
takes arguments in the form of:
int
) - Sleep for int
seconds,int
, int
) - Sleep for a random amount of seconds, defined by (min
, max
),natural language
') - Sleep for the specified time.const nap = require('pancho');
nap(1).then(duration => {
// Your program slept for 1 second.
// duration = Duration of the nap, in milliseconds.
});
nap(1, 3).then(duration => {
// Your program slept for a random amount of seconds (between 1 and 3).
// duration = Duration of the nap, in milliseconds.
});
nap('3.5 seconds').then(duration => {
// Your program slept for 3.5 seconds.
// duration = Duration of the nap, in milliseconds.
});
nap('5 minutes').then(duration => {
// Your program slept for 5 minutes.
// duration = Duration of the nap, in milliseconds.
});
fork https://github.com/aichholzer/pancho/
FAQs
Your applications also deserve a nap.
The npm package pancho receives a total of 3 weekly downloads. As such, pancho popularity was classified as not popular.
We found that pancho 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.
Research
/Security News
Malicious update to @ctrl/tinycolor on npm is part of a supply-chain attack hitting 40+ packages across maintainers
Security News
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.