
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@classytic/ledger-ca
Advanced tools
Canada country pack for @classytic/ledger — GIFI chart of accounts, GST/HST/PST/QST tax codes, CRA return
Canada country pack for @classytic/ledger — GIFI chart of accounts, GST/HST/PST/QST tax codes, CRA GST/HST return template, and COR file parser/generator.
npm install @classytic/ledger-ca @classytic/ledger
import { createAccountingEngine } from '@classytic/ledger';
import { canadaPack } from '@classytic/ledger-ca';
const accounting = createAccountingEngine({
country: canadaPack,
currency: 'CAD',
multiTenant: { orgField: 'business', orgRef: 'Business' },
});
Complete CRA GIFI (General Index of Financial Information) account type definitions — assets, liabilities, equity, revenue, cost of sales, operating expenses, with structural groups and calculated totals.
import { GIFI_ACCOUNT_TYPES } from '@classytic/ledger-ca';
Convenience subsets:
import {
ASSETS, LIABILITIES, EQUITY, INCOME_STATEMENT,
CURRENT_ASSETS, CAPITAL_ASSETS, LONG_TERM_ASSETS,
CURRENT_LIABILITIES, LONG_TERM_LIABILITIES,
REVENUE, COST_OF_SALES, OPERATING_EXPENSES,
TAX_LIABILITY_ACCOUNTS, TAX_ASSET_ACCOUNTS,
} from '@classytic/ledger-ca';
GST, HST, PST, QST codes with rates per province:
import { TAX_CODES, getTaxCodeDetails, getTaxAccountsByProvince } from '@classytic/ledger-ca';
getTaxCodeDetails('GST'); // { code: 'GST', rate: 0.05, ... }
getTaxAccountsByProvince('Ontario'); // HST accounts for Ontario
import { craReturnTemplate } from '@classytic/ledger-ca';
const results = craReturnTemplate.calculate(inputData);
const summary = craReturnTemplate.summarize(results);
Parse and generate CRA Corporate Online Return files:
import { CORParser, CORGenerator } from '@classytic/ledger-ca/cor';
// Parse
const parser = new CORParser();
const data = parser.parse(corFileString);
// Generate
const generator = new CORGenerator();
const output = generator.generate({ header, company, directors, accounts });
| Import path | Contents |
|---|---|
@classytic/ledger-ca | canadaPack, GIFI accounts, tax codes, provinces, CRA return template |
@classytic/ledger-ca/cor | COR parser, generator, GIFI loader, schedule mapper, line parser |
MIT
FAQs
Canada country pack for @classytic/ledger — GIFI chart of accounts, GST/HST/PST/QST tax codes, CRA return
We found that @classytic/ledger-ca 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.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.