
Security News
Happy Birthday, Shai-Hulud
It has been one year since Shai-Hulud made its first appearance on npm.
@magmacomputing/tempo-fns
Advanced tools
|
|
|
A library of highly granular, fully tree-shakeable utility functions built directly on top of the JavaScript Temporal API.
This package provides a bridge for developers transitioning from legacy date wrappers (like Moment or date-fns) into the modern Temporal API.
tempo-fns?import { isFirstDayOfMonth } from '@magmacomputing/tempo-fns' pulls in zero extra bloat.Temporal.ZonedDateTime and Temporal.PlainDate objects. You don't have to use the Tempo class.Tempo class wrapper, tempo-fns provides advanced business-intelligence utilities that inherently understand Tempo's Terms engine (e.g., isSameFiscalQuarter).import { Tempo } from '@magmacomputing/tempo';
import { isFirstDayOfMonth, isSameFiscalQuarter } from '@magmacomputing/tempo-fns';
const today = new Tempo();
if (isFirstDayOfMonth(today)) {
console.log('Rent is due!');
}
If you aren't using a bundler (like Vite, Webpack, or Rollup), we provide a pre-bundled script that exposes a Functions global object.
<script src="https://cdn.jsdelivr.net/npm/@magmacomputing/tempo-fns/dist/tempo-fns.global.js"></script>
<script>
// Access functions via the Functions global
Functions.isFirstDayOfMonth(Temporal.Now.plainDateISO());
</script>
FAQs
Tree-shakeable functional utilities for the Temporal API
The npm package @magmacomputing/tempo-fns receives a total of 8 weekly downloads. As such, @magmacomputing/tempo-fns popularity was classified as not popular.
We found that @magmacomputing/tempo-fns 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.