
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
tiny-timer
Advanced tools
Small countdown timer and stopwatch module.
npm:
$ npm install tiny-timer
Yarn:
$ yarn add tiny-timer
const Timer = require('tiny-timer')
const timer = new Timer()
timer.on('tick', (ms) => console.log('tick', ms))
timer.on('done', () => console.log('done!'))
timer.on('statusChanged', (status) => console.log('status:', status))
timer.start(5000) // run for 5 seconds
timer = new Timer({ interval: 1000, stopwatch: false })Optionally set the refresh interval in ms, or stopwatch mode instead of countdown.
timer.start(duration [, interval]) {Starts timer running for a duration specified in ms.
Optionally override the default refresh interval in ms.
timer.stop()Stops timer.
timer.pause()Pauses timer.
timer.resume()Resumes timer.
timer.on('tick', (ms) => {})Event emitted every interval with the current time in ms.
timer.on('done', () => {})Event emitted when the timer reaches the duration set by calling timer.start().
timer.on('statusChanged', (status) => {})Event emitted when the timer status changes.
timer.timeGets the current time in ms.
timer.durationGets the total duration the timer is running for in ms.
timer.statusGets the current status of the timer as a string: running, paused or stopped.
FAQs
Small countdown timer and stopwatch module.
The npm package tiny-timer receives a total of 1,239 weekly downloads. As such, tiny-timer popularity was classified as popular.
We found that tiny-timer 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.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.