{"id":22109294,"url":"https://github.com/pruvonet/price-extractor","last_synced_at":"2026-02-28T05:39:52.508Z","repository":{"id":29325964,"uuid":"121360064","full_name":"PruvoNet/price-extractor","owner":"PruvoNet","description":"Given a price string, extract the price and currency code","archived":false,"fork":false,"pushed_at":"2023-09-27T22:36:39.000Z","size":173,"stargazers_count":10,"open_issues_count":2,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-11-11T21:53:20.432Z","etag":null,"topics":["curr","currency","extract","extractor","javascript","node","parser","price"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PruvoNet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2018-02-13T08:56:07.000Z","updated_at":"2024-10-22T05:35:59.000Z","dependencies_parsed_at":"2024-06-21T14:29:28.372Z","dependency_job_id":"bedbab59-f8fb-43cd-af57-9fd224221544","html_url":"https://github.com/PruvoNet/price-extractor","commit_stats":{"total_commits":24,"total_committers":2,"mean_commits":12.0,"dds":0.04166666666666663,"last_synced_commit":"cc9b8576b15587bd16a0043ee4c074b361db0021"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PruvoNet%2Fprice-extractor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PruvoNet%2Fprice-extractor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PruvoNet%2Fprice-extractor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PruvoNet%2Fprice-extractor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PruvoNet","download_url":"https://codeload.github.com/PruvoNet/price-extractor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227529096,"owners_count":17783979,"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":["curr","currency","extract","extractor","javascript","node","parser","price"],"created_at":"2024-12-01T09:31:13.923Z","updated_at":"2026-02-28T05:39:52.477Z","avatar_url":"https://github.com/PruvoNet.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Npm Version](https://img.shields.io/npm/v/price-extractor.svg?style=popout)](https://www.npmjs.com/package/price-extractor)\n[![node](https://img.shields.io/node/v-lts/price-extractor)](https://www.npmjs.com/package/price-extractor)\n[![Build status](https://github.com/PruvoNet/price-extractor/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/PruvoNet/price-extractor/actions/workflows/ci.yml)\n[![Test Coverage](https://api.codeclimate.com/v1/badges/83a4b9446725afb8f6ef/test_coverage)](https://codeclimate.com/github/PruvoNet/price-extractor/test_coverage)\n[![Maintainability](https://api.codeclimate.com/v1/badges/83a4b9446725afb8f6ef/maintainability)](https://codeclimate.com/github/PruvoNet/price-extractor/maintainability)\n[![Known Vulnerabilities](https://snyk.io/test/github/PruvoNet/price-extractor/badge.svg?targetFile=package.json)](https://snyk.io/test/github/PruvoNet/price-extractor?targetFile=package.json)\n\n# price-extractor\n\nA small library for parsing price strings in order to extract the price as a number and the currency code of the price.  \nThe library can handle all kinds of thousands and cents delimiters, as well as all currency native symbols and unicodes.\n\n## Installation \n```sh\nnpm install price-extractor\n```\nOr\n```sh\nyarn add price-extractor\n```\n\n## Examples\n```typescript\nimport {searchPriceAndCode} from 'price-extractor';\nconsole.dir(searchPriceAndCode('99,01€')); // { price: 99.01, code: 'EUR' }\nconsole.dir(searchPriceAndCode('ARS 1,647.86')); // { price: 1647.86, code: 'ARS' }\nconsole.dir(searchPriceAndCode('1.958,43 NOK')); // { price: 1958.43, code: 'NOK' }\nconsole.dir(searchPriceAndCode('￥732.62')); // { price: 732.62, code: 'JPY' }\nconsole.dir(searchPriceAndCode('2\\'425.64 CHF')); // { price: 2425.64, code: 'CHF' }\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpruvonet%2Fprice-extractor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpruvonet%2Fprice-extractor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpruvonet%2Fprice-extractor/lists"}