Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
tqdm for node
wrap an iterable in tdqm, and it will update the progress bar as it iterates
install
npm install ntqdm
usage:
var tdqm = require(ntqdm)();
var t = [1,2,3,4,5,6,7,8,9,10];
for(let i of tdqm(t)) {
sleep(1000);
}
for infinite iterables, you need to specify a total number of iteations to complete. If no total is specified, tdqm tries to find the total by iterating.
for(let i of tdqm(generator(), {total:50})) {
sleep(1000);
}
normally, tdqm updates the same line, and assumes nothing else is written to stdout, you can set logging to true to output on new lines
for(let i of tdqm(generator(), {total:50, logging:true})) {
sleep(1000);
console.log("foo");
}
other switches:
desc - text to add above the progress bar
minIter - the minimum number of iterations to complete between updates
minInterval - the amount of time between iterations
FAQs
tqdm for node
The npm package ntqdm receives a total of 2,401 weekly downloads. As such, ntqdm popularity was classified as popular.
We found that ntqdm 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
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.