
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
countdown-x
Advanced tools
You can using a in 2 way
npm install countdown-x
npm i countdown-x
See the example below to use it
var countdownX = require("countdown-x");
// Using: countdown
setInterval(() => {
// it's was called every seconds
console.log(countdownX.fromNow().countdown("2033/12/10 16:23:00")) // {days: 8, hours: "00", minutes: "05", months: 2, seconds: 44, years: 13}
}, 1000)
// Using: countdownEvery
countdownX
.fromNow()
.countdownEvery("2033/12/10 16:23:00", { ms: 1000 }, (values) => {
// Do something with values
// it's was called every seconds
console.log(values); // {days: 8, hours: "00", minutes: "05", months: 2, seconds: 44, years: 13}
});
| API | Description | Return |
|---|---|---|
| fromNow() | Setup countdown destination | void |
| countdown(eventDate) | The countdown function | {days, hours, minutes, months, seconds, years} |
| countdownEvery(eventDate, options{ms: number}, callback) | The countdown function automatically according to predetermined time | void |
| The version | Description | Issues |
|---|---|---|
| v1.0.0 | Project initialization | No issue |
| v1.0.1 | Clean code | No issue |
| v1.0.2 | Clean code | No issue |
| v1.0.3 | Clean code | No issue |
| v1.0.4 | Fix | The countdown time is wrong |
| v1.0.4-1 | Refactoring the source code | Structure |
| v1.0.4-2 | Change example code | No issue |
| v1.0.5 | Add type and supported suggest code | No issue |
| v1.1.0 | add new function support auto setInterval | No issue |
FAQs
The helper function countdown time
The npm package countdown-x receives a total of 5 weekly downloads. As such, countdown-x popularity was classified as not popular.
We found that countdown-x 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.