{"id":17868331,"url":"https://github.com/mvfsillva/international-fees","last_synced_at":"2025-03-21T11:31:31.912Z","repository":{"id":37049679,"uuid":"242318859","full_name":"mvfsillva/international-fees","owner":"mvfsillva","description":"A library to make it easier mapper Canadian and the US consumer taxes","archived":false,"fork":false,"pushed_at":"2023-01-07T04:33:04.000Z","size":2667,"stargazers_count":24,"open_issues_count":5,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T00:45:15.254Z","etag":null,"topics":["canada","consumer-fees","country","fees","fees-calc","international-fees","jest","lint-staged","npm","prettier","province","taxes","typescript","usa","xo"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/international-fees","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mvfsillva.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":".github/contributing.md","funding":null,"license":"license","code_of_conduct":".github/code-of-conduct.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-22T10:04:23.000Z","updated_at":"2024-03-12T17:47:56.000Z","dependencies_parsed_at":"2023-02-06T12:00:48.886Z","dependency_job_id":null,"html_url":"https://github.com/mvfsillva/international-fees","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvfsillva%2Finternational-fees","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvfsillva%2Finternational-fees/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvfsillva%2Finternational-fees/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mvfsillva%2Finternational-fees/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mvfsillva","download_url":"https://codeload.github.com/mvfsillva/international-fees/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244790770,"owners_count":20510804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["canada","consumer-fees","country","fees","fees-calc","international-fees","jest","lint-staged","npm","prettier","province","taxes","typescript","usa","xo"],"created_at":"2024-10-28T09:57:36.948Z","updated_at":"2025-03-21T11:31:30.880Z","avatar_url":"https://github.com/mvfsillva.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# International fees\n\n## Why?\nEach country has its own way of collecting taxes and, sometimes, they are also divided by the state, as in the case of Canada, each province has its tax rate added to the tax charged by the country. This library maps all of these fees to make your life easier.\n\n## Installation\n\n```shell\n$ yarn add international-fees\n# or\n$ npm install international-fees\n```\n\n## Usage\n\n\n```js\nimport fees from 'international-fees'\n\n// List all provinces\n console.log(fees.ca)\n```\n![Canada provinces list](.github/ca-list.png)\n\n```js\nimport fees from 'international-fees'\n\n// List all states\n console.log(fees.usa)\n```\n![The USA states list](.github/usa-list.png)\n\n\n```js\nfees.ca['Ontario'].provinceRate // 8\nfees.ca['Ontario'].countryRate // 5\nfees.ca['Ontario'].tax // 13\n\nfees.usa['New York'].tax // 10\nfees.usa['New Jersey'].tax // 1\n```\n\n## Contributing\n\n### 01. Learn more in the Contributing guide\n\nPlease take a look at the [contributing guide](.github/contributing.md).\n\n### 02. Fork this project\n\n### 03. Install dependencies\n\n```sh\n$ yarn or npm install\n```\n\n## Respect earns Respect 👏\n\nPlease respect our [Code of Conduct](.github/code-of-conduct.md), in short:\n\n- Using welcoming and inclusive language\n- Being respectful of differing viewpoints and experiences\n- Gracefully accepting constructive criticism\n- Focusing on what is best for the community\n- Showing empathy towards other community members\n\n## License\n\n[MIT](license) © 2020 Marcus Silva\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvfsillva%2Finternational-fees","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmvfsillva%2Finternational-fees","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmvfsillva%2Finternational-fees/lists"}