1.0.2 • Published 2d ago
@magmacomputing/tempo-plugin-finance
Licence
MIT
Version
1.0.2
Deps
0
Size
9 kB
Vulns
0
Weekly
0
@magmacomputing/tempo-plugin-finance
A specialized namespace plugin for Tempo that provides fiscal year and financial date utilities.
View the full documentation on our GitHub Pages
Installation
npm install @magmacomputing/tempo-plugin-finance
Usage
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
Documentation
Full documentation available at https://magmacomputing.github.io/magma/doc/9-plugins/finance.index.html.
Licensing
This is a Community plugin. It is completely free and open-source for personal and commercial use. No license token is required.