
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.
Stopwatch written in TypeScript
All times are saved as DOMHighResTimeStamps, which are milliseconds accurate to 5 microseconds.
npm i lapwatch
// Node.js
import Lapwatch from 'lapwatch';
// Browser
import Lapwatch from 'https://unpkg.com/lapwatch';
Note: it is a default export, so you can freely name the import
Simple:
const lapwatch = new Lapwatch();
Advanced:
const lapwatch = new Lapwatch({
initial: 0,
delay: 0
});
Note: see below for descriptions of initial and delay
lapwatch.initial - number of milliseconds added to the timer at the start
lapwatch.delay - number of milliseconds to wait before starting the timer
lapwatch.laps - array of times saved from the lapwatch.lap() method
lapwatch.start()
lapwatch.stop(lap)
true as a parameter calls the lapwatch.lap() methodlapwatch.elapsed()
lapwatch.lap()
lapwatch.laps arraylapwatch.set(time)
lapwatch.reset()
You can discuss this repository more in my Discord.
FAQs
Stopwatch written in TypeScript
We found that lapwatch 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.