@the_grid/get-tax

1.0.2 • Public • Published

State and Province Tax Calculator

US and Canada only, does not calculate local tax. This is intended for e-commerce.

Usage

Enter amount and state/province, totalTax will provide the full amount of tax to add to your total.

import { getTax } from "@the_grid/get-tax";

const MyComponent = () => {
  const totalTax = getTax(amount, "2-letter State Or Province");

  // const totalTax = useGetTax(10,"MN")
};

Readme

Keywords

Package Sidebar

Install

npm i @the_grid/get-tax

Version

1.0.2

License

ISC

Unpacked Size

3.26 kB

Total Files

3

Last publish

Collaborators

  • c_lee