
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.
@wanoo21/countdown-time
Advanced tools
Create a flexible and powerfull countdown to any future dates.
Create a flexible and powerfull countdown to any future dates.
npm i @wanoo21/countdown-time
import '@wanoo21/countdown-time';
<countdown-time add="1h 30m"></countdown-time>
Read more about this Countdown Web Component.
Property | Attribute | Description | Type | Default |
---|---|---|---|---|
add | add | Add more time to current datetime separated by spaces, ex: add="1h 30m" | string | undefined |
autostart | autostart | Whether start or not when countdown is ready, if not, you must start it manually. | boolean | false |
datetime | datetime | Datetime to countdown, must be a valid date | `number | string` |
format | format | Showing format, {d} = days, {h} hours, {m} minutes and {s} seconds. | string | '{h}:{m}:{s}' |
utc | utc | Convert date to UTC | boolean | false |
Event | Description | Type |
---|---|---|
change | Emit each time when it changes. | CustomEvent<void> |
expire | Emit when countdown expires. | CustomEvent<void> |
ready | Emit when countdown is ready to start. | CustomEvent<void> |
started | Emit when countdown in started. | CustomEvent<void> |
stopped | Emit when countdown in stopped. | CustomEvent<void> |
getCountDownTime() => Promise<ITimeObject>
Get countdown time as object.
Type: Promise<ITimeObject>
reDraw() => Promise<void>
Re-Draw manually countdown after changing the 'add' or 'datetime' property
Type: Promise<void>
restart() => Promise<void>
Restart countdown manually.
Type: Promise<void>
setAsExpired() => Promise<void>
Set as expired manually, it'll stop and do everything as expired.
Type: Promise<void>
start() => Promise<number>
Start countdown manually.
Type: Promise<number>
stop() => void
Stop/Pause countdown manually.
Type: void
Built with StencilJS
FAQs
Create a flexible and powerfull countdown to any future dates.
We found that @wanoo21/countdown-time 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.