{"id":16397402,"url":"https://github.com/foxriver76/sales-taxes","last_synced_at":"2026-06-10T21:32:18.292Z","repository":{"id":95824939,"uuid":"538690685","full_name":"foxriver76/sales-taxes","owner":"foxriver76","description":"TypeScript implementation of the sales-taxes problem","archived":false,"fork":false,"pushed_at":"2022-09-20T08:27:02.000Z","size":79,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-13T21:03:32.222Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/foxriver76.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-19T20:44:28.000Z","updated_at":"2022-09-20T08:29:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"b34f3397-2001-4a8f-a960-81c27323d518","html_url":"https://github.com/foxriver76/sales-taxes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/foxriver76/sales-taxes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxriver76%2Fsales-taxes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxriver76%2Fsales-taxes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxriver76%2Fsales-taxes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxriver76%2Fsales-taxes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/foxriver76","download_url":"https://codeload.github.com/foxriver76/sales-taxes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/foxriver76%2Fsales-taxes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34172196,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-10T02:00:07.152Z","response_time":89,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-10-11T05:10:00.782Z","updated_at":"2026-06-10T21:32:18.276Z","avatar_url":"https://github.com/foxriver76.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TypeScript implementation of the sales taxes problem\n\n## How-To:\nYou can execute the cli by using the following command while you are inside the repository directory (you can also start from other directories):\n\n```bash\nnode ./build/index.js file \u003cpath-to-file\u003e\n```\n\nuse \n\n```bash\nnode ./build/index.js --help\n```\n\nto list all available options.\n\nAn example:\n```bash\nnode ./build/index.js file test/input3.txt\n```\n\nYou can change the taxes and item classification for the cli in the config folder. Please ensure, that changes made here \nare valid against the configured JSON schema.\n\n## Problem description\nBasic sales tax is applicable at a rate of 10% on all goods, except books, food, and medical\nproducts that are exempt. Import duty is an additional sales tax\napplicable on all imported goods at a rate of 5%, with no exemptions. When I purchase items\nI receive a receipt which lists the name of all the items and their price (including tax),\nfinishing with the total cost of the items,\nand the total amounts of sales taxes paid. The rounding rules for sales tax are that for a tax\nrate of n%, a shelf price of p contains (np/100 rounded up to the nearest 0.05) amount of\nsales tax.\nWrite an application that prints out the receipt details for these shopping baskets...\n### INPUT:\nInput 1:\n- 1 book at 12.49\n- 1 music CD at 14.99\n- 1 chocolate bar at 0.85\n\nInput 2:\n- 1 imported box of chocolates at 10.00\n- 1 imported bottle of perfume at 47.50\n\nInput 3:\n- 1 imported bottle of perfume at 27.99\n- 1 bottle of perfume at 18.99\n- 1 packet of headache pills at 9.75\n- 1 box of imported chocolates at 11.25\n\n### OUTPUT\nOutput 1:\n- 1 book: 12.49\n- 1 music CD: 16.49\n- 1 chocolate bar: 0.85\n- Sales Taxes: 1.50\n- Total: 29.83\n\nOutput 2:\n- 1 imported box of chocolates: 10.50\n- 1 imported bottle of perfume: 54.65\n- Sales Taxes: 7.65\n- Total: 65.15\n\nOutput 3:\n- 1 imported bottle of perfume: 32.19\n- 1 bottle of perfume: 20.89\n- 1 packet of headache pills: 9.75\n- 1 imported box of chocolates: 11.85\n- Sales Taxes: 6.70\n- Total: 74.68\n\n## Changelog\n### 1.0.0 (2022-09-20)\n* (foxriver76) initial release\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxriver76%2Fsales-taxes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffoxriver76%2Fsales-taxes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffoxriver76%2Fsales-taxes/lists"}