1.0.0 • Published 4 years ago
sales-tax-cad v1.0.0
const SalesTax = require('sales-tax-cad');
const tax = new SalesTax(
'ON', // reference rates.json if unsure
21.41, // ensure that this is a number
2, // leave blank for raw result
);
tax.get(); // returns an array of all chargeable taxes
tax.sum(); // returns the total payable tax
1.0.0
4 years ago