Skip to content

magicasaservice/magic-timer

Repository files navigation

⏱️ Magic Timer

A simple 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()

🐛 Found a Bug?

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

See it. Say it. Sorted.

About

Event based timer for Node.js and the browser

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •