
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
notatimer is "not a timer." It is, in fact, a stopwatch, though it doesn't stop some people (see: speedrunners) from calling it a timer.
npm i notatimer
// CommonJS
const Stopwatch = require('notatimer');
// ESM
import Stopwatch from 'notawatch';
It is a default export, so it can be named whatever you want.
const stopwatch = new Stopwatch()
Optionally, an object can be passed into the constructor, with three possible properties.
const stopwatch = new Stopwatch({
initial: 0, // must be a number
delay: 0, // must be a nonnegative number
callback: null // must be a function with one parameter -- details below
})
The callback function is passed an object containing a time property and times property.
These three properties can be updated after construction using stopwatch.set(object).
stopwatch.timeCurrent time in milliseconds (accurate to 5 microseconds).
stopwatch.timesCurrent time as an array in the format [hours, minutes, seconds, milliseconds].
stopwatch.startedIf the stopwatch has started (true/false).
stopwatch.runningIf the stopwatch is currently running (true/false).
stopwatch.finishedIf the stopwatch has finished (true/false).
stopwatch.initialThe initial time for the stopwatch (use the constructor or stopwatch.set() to set).
stopwatch.delayThe initial delay for the stopwatch (use the constructor or stopwatch.set() to set).
stopwatch.lapsArray of objects, each with a time property and times property.
stopwatch.callbackFunction that is called every step or when setting a property. Use this function to update where the time is displayed.
stopwatch.start()Start the timer. Returns void.
stopwatch.pause()Pause the timer. Returns void.
stopwatch.stop()Stops the timer. Returns an object with a time property and times property.
stopwatch.reset()Stops and resets the timer to the initial value. Returns void.
stopwatch.lap()Adds an object with a time property and times property to thestopwatch.laps array. Returns the aforementioned object.
stopwatch.set(object)Sets the initial property, delay property, and/or callback function. Returns void.
FAQs
Stopwatch framework
We found that notatimer 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.