
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
light-countdown
Advanced tools
倒计时组件
$ npm install light-countdown --save
import countdown from 'light-countdown';
// 简单用法
countdown({
timeEnd: (new Date().getTime() + 100000),
selector: '#example'
});
// 所有参数
countdown({
currentTime: new Date('2018-4-15 20:00:00').getTime(),
timeEnd: new Date('2018-4-15 20:00:05').getTime(),
selector: '#example2',
msgPattern: '{years}年{months}月{weeks}周{days}天{hours}时{minutes}分{seconds}秒{decimal}',
showZero: false, // 小于10补0,默认为true
afterCount() {
alert('done')
}
});
参数:
new Date().getTime(),为了防止客户端时间不一致,建议传入服务器时间new Date().getTime().J_countdown{days}天{hours}时{minutes}分{seconds}秒{decimal}true返回值:undefined
MIT
FAQs
countdown plugin
We found that light-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
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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.