
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
realtime-countdown
Advanced tools
Lightweight realtime countdown timer JavaScript Library
npm install realtime-countdown
{
timeStamp: 0, // value in milliseconds
countStep: 1000, // value in milliseconds
leadingZero: false, // adds leading zero before the value if it's a single digit
onInitialize: function(eventObject) {},
onCount: function(eventObject) {},
onCountEnd: function(eventObject) {},
onDestroy: function(eventObject) {},
}
destroy ()
import RealtimeCountdown from 'realtime-countdown'
const timeStamp = Date.now() + 24 * 60 * 60 * 1000
const onInitialize = (timeLeft) => console.log(timeLeft)
const onCount = (timeLeft) => console.log(timeLeft)
const onCountEnd = (timeLeft) => console.log(timeLeft)
const Timer = new RealtimeCountdown({ timeStamp, onInitialize, onCount, onCountEnd })
// output on onInitialize
const onInitializeTimeLeft = { days: 1, hours: 0, minutes: 0, seconds: 0 }
// output on every tick, will be reduced by a `countStep`
const onCountTimeLeft = { days: 0, hours: 23, minutes: 59, seconds: 59 }
// output on count end (not called when destroy)
const onCountEndTimeLeft = { days: 0, hours: 0, minutes: 0, seconds: 0 }
// destroy timer
Timer.destroy()
npm test
npm run coverage
FAQs
Realtime countdown timer JavaScript Library
We found that realtime-countdown 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.