Skip to content

Tick … Tick … Tick … Event based timer for the server and the client

License

Notifications You must be signed in to change notification settings

magicasaservice/magic-timer

Repository files navigation

⏱️ Magic Timer

Magic Timer is a simple event based timer that runs on the server as well as the browser.

📦 Install

# pnpm
pnpm install @maas/magic-timer

# npm
npm install @maas/magic-timer

# yarn
yarn add @maas/magic-timer

🪄 Use

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

Tick … Tick … Tick … Event based timer for the server and the client

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 3

  •  
  •  
  •