
Security News
Happy Birthday, Shai-Hulud
It has been one year since Shai-Hulud made its first appearance on npm.
@magmacomputing/tempo-plugin-snap
Advanced tools
Tempo plugin for rounding and snapping dates to custom minute, hour, or sub-second intervals — ideal for calendar UIs, time-pickers, and telemetry aggregation
A Community plugin for the Tempo library that provides robust time rounding and snapping functionality (e.g. snapping to the nearest 15-minute or 1-hour block) for calendar and scheduling applications.
👉 View the full documentation on our GitHub Pages
npm install @magmacomputing/tempo-plugin-snap
import { Tempo } from '@magmacomputing/tempo';
import { SnapPlugin } from '@magmacomputing/tempo-plugin-snap';
// Pass the plugin to `Tempo.init` to register it into the runtime.
Tempo.init({
extends: [SnapPlugin]
});
const t = new Tempo('2026-06-01T14:08:00Z');
// Snaps to the nearest 15 minutes by default
const snapped = t.snap();
console.log(snapped.format('{hh}:{mi}')); // "14:15"
// Or explicitly provide units and intervals
const snapHour = t.snap('hh', 1);
const snapSecond = t.snap('ss', 30);
For full API reference, advanced configuration, and detailed explanations of the rounding features, please visit the official 📖 Snap Plugin Documentation.
This is a Community plugin. It is completely free and open-source for personal and commercial use under the MIT license.
FAQs
Tempo plugin for rounding and snapping dates to custom minute, hour, or sub-second intervals — ideal for calendar UIs, time-pickers, and telemetry aggregation
The npm package @magmacomputing/tempo-plugin-snap receives a total of 0 weekly downloads. As such, @magmacomputing/tempo-plugin-snap popularity was classified as not popular.
We found that @magmacomputing/tempo-plugin-snap demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
It has been one year since Shai-Hulud made its first appearance on npm.

Research
/Security News
Operators behind PolinRider used a compromised GitHub account to plant malware in four development versions of a Packagist package with 700,000+ downloads.

Security News
GitHub Actions now supports cache-mode, a least-privilege control on the Actions cache aimed at the cache poisoning technique behind recent compromises.