@maas/magic-timer
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

⏱️ MagicTimer

Event based timer for Node.js and the browser.

📦 Install

# pnpm
pnpm install @maas/magic-timer

# npm
npm install @maas/magic-timer

# yarn
yarn add @maas/magic-timer

🚀 Usage

import { MagicTimer } from '@maas/magic-timer'

const timer = new MagicTimer(1000)

timer.on('tick', (time) => {
  console.log(time)
})

timer.start()

🧱 Contribute

Coming soon

🐛 Found a Bug?

If you see something that doesn't look right, submit a bug report. See it. Say it. Sorted.

Readme

Keywords

none

Package Sidebar

Install

npm i @maas/magic-timer

Weekly Downloads

45

Version

1.0.1

License

MIT

Unpacked Size

42.1 kB

Total Files

9

Last publish

Collaborators

  • christophjeworutzki
  • robinscholz