
Security News
Happy Birthday, Shai-Hulud
It has been one year since Shai-Hulud made its first appearance on npm.
@magmacomputing/tempo-plugin-interval
Advanced tools
Tempo community plugin providing Luxon-like Interval functionality for set-theory operations on time windows.
This is a Community plugin for the Tempo library providing Luxon-like Interval functionality for set-theory operations on time windows.
npm install @magmacomputing/tempo-plugin-interval
import { Tempo } from '@magmacomputing/tempo';
import { IntervalPlugin } from '@magmacomputing/tempo-plugin-interval';
// Register the plugin
Tempo.extend(IntervalPlugin);
// Create an interval
const start = new Tempo('2024-01-01');
const end = new Tempo('2024-12-31');
const interval = Tempo.interval(start, end);
// Open-ended interval (start to the end of time!)
const openEnded = Tempo.interval(start);
// Set theory operations
interval.contains(new Tempo('2024-06-01')); // true
interval.overlaps(Tempo.interval('2024-11-01', '2025-02-01')); // true
contains(tempo: Tempo): booleanoverlaps(other: Interval): booleanabuts(other: Interval): booleanintersection(other: Interval): Interval | nullunion(other: Interval): Interval | nullThis is a Community plugin. It is completely free and open-source for personal and commercial use. No license token is required.
For commercial licensing options, please contact Magma Computing Solutions.
FAQs
Tempo community plugin providing Luxon-like Interval functionality for set-theory operations on time windows.
The npm package @magmacomputing/tempo-plugin-interval receives a total of 0 weekly downloads. As such, @magmacomputing/tempo-plugin-interval popularity was classified as not popular.
We found that @magmacomputing/tempo-plugin-interval 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.