Skip to content

@magmacomputing/tempo-plugin-finance

npm version npm peer dependency version License TypeScript Ready

A specialized namespace plugin for Tempo that provides fiscal year and financial date utilities.

Installation

bash
npm install @magmacomputing/tempo-plugin-finance

Usage

typescript
import { Tempo } from '@magmacomputing/tempo';
import { FinanceNamespace } from '@magmacomputing/tempo-plugin-finance';

// Register the namespace
Tempo.extend(FinanceNamespace);

const t = new Tempo('2024-07-01');

// Evaluate static properties
console.log(t.finance.fiscalQuarter); // 3
console.log(t.finance.taxYear); // 2024

// Evaluate functional closures
console.log(t.finance.isFiscalYearStart()); // false

Licensing

This is a Community plugin. It is completely free and open-source for personal and commercial use. No license token is required.

Released under the MIT License.