{"id":13582993,"url":"https://github.com/vaiden/amazon-asin","last_synced_at":"2026-06-11T03:02:30.636Z","repository":{"id":24804559,"uuid":"102488516","full_name":"vaiden/amazon-asin","owner":"vaiden","description":"An efficient NodeJS module to extract Amazon ASIN/ISBN from links. Supports Amazon shortened permalinks","archived":false,"fork":false,"pushed_at":"2024-07-11T12:51:49.000Z","size":109,"stargazers_count":28,"open_issues_count":2,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-20T19:15:33.891Z","etag":null,"topics":["amazon","asin","nodejs","parser"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/vaiden.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":"2017-09-05T14:02:16.000Z","updated_at":"2024-05-02T10:33:18.000Z","dependencies_parsed_at":"2024-04-08T15:54:22.664Z","dependency_job_id":"6ad7c352-858f-45f1-9576-00afcfd0531e","html_url":"https://github.com/vaiden/amazon-asin","commit_stats":{"total_commits":50,"total_committers":9,"mean_commits":5.555555555555555,"dds":0.72,"last_synced_commit":"08f936793fa52c41b5c3edc314764024be872cd8"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/vaiden/amazon-asin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaiden%2Famazon-asin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaiden%2Famazon-asin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaiden%2Famazon-asin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaiden%2Famazon-asin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vaiden","download_url":"https://codeload.github.com/vaiden/amazon-asin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vaiden%2Famazon-asin/sbom","scorecard":{"id":914753,"data":{"date":"2025-08-11","repo":{"name":"github.com/vaiden/amazon-asin","commit":"c7e6877905995c486dfe8fcc2a2e6b34b66da317"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.5,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":1,"reason":"Found 2/18 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":5,"reason":"dependency not pinned by hash detected -- score normalized to 5","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/vaiden/amazon-asin/node.js.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/node.js.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/vaiden/amazon-asin/node.js.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/vaiden/amazon-asin/npm-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/vaiden/amazon-asin/npm-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/vaiden/amazon-asin/npm-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/vaiden/amazon-asin/npm-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/push.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/vaiden/amazon-asin/push.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/push.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/vaiden/amazon-asin/push.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/push.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/vaiden/amazon-asin/push.yml/master?enable=pin","Info:   0 out of   8 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   3 out of   3 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/node.js.yml:1","Warn: no topLevel permission defined: .github/workflows/npm-publish.yml:1","Warn: no topLevel permission defined: .github/workflows/push.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 15 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":6,"reason":"4 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T20:34:10.600Z","repository_id":24804559,"created_at":"2025-08-24T20:34:10.600Z","updated_at":"2025-08-24T20:34:10.600Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34180147,"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-11T02:00:06.485Z","response_time":57,"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":["amazon","asin","nodejs","parser"],"created_at":"2024-08-01T15:03:10.826Z","updated_at":"2026-06-11T03:02:30.590Z","avatar_url":"https://github.com/vaiden.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Amazon ASIN\n\n[![NPM version](https://img.shields.io/npm/v/amazon-asin.svg?style=flat)](https://npmjs.org/package/amazon-asin) [![NPM downloads](https://img.shields.io/npm/dm/amazon-asin.svg?style=flat)](https://npmjs.org/package/amazon-asin) [![GitHub issues](https://img.shields.io/github/issues/vaiden/amazon-asin.svg)](https://github.com/vaiden/amazon-asin/issues) [![Tests](https://img.shields.io/github/actions/workflow/status/vaiden/amazon-asin/node.js.yml?label=tests\u0026branch=master)](https://github.com/vaiden/amazon-asin/actions/workflows/node.js.yml?query=branch%3Amaster) [![PRs](https://img.shields.io/github/issues-pr/vaiden/amazon-asin)](https://github.com/vaiden/amazon-asin/pulls?q=is%3Apr+is%3Aopen) \n\n\u003e An efficient NodeJS module to extract Amazon ASIN/ISBN from links. Supports Amazon shortened permalinks\n\n## Installation\n\n```\nnpm install amazon-asin --save\n```\n## Usage\n\n#### Sync\n```js\nvar amazonAsin = require('amazon-asin');\n\namazonAsin.syncParseAsin(\"https://www.amazon.com/gp/product/B01IG0E1F0/ref=s9u_nwrsa_gw_i3?ie=UTF8\u0026fpl=fresh\u0026pd_rd_i=B01IG0E1F0\u0026pd_rd_r=HX877ZSJ45VZ39AN59A1\u0026pd_rd_w=6aVbp\u0026pd_rd_wg=Yyiuk\u0026pf_rd_m=ATVPDKIKX0DER\u0026pf_rd_s=\u0026pf_rd_r=K1JQVYXFAG8F4WKVT3N0\u0026pf_rd_t=36701\u0026pf_rd_p=b15e70a0-40cd-4167-b336-ff44ea910cf2\u0026pf_rd_i=desktop\");\n```\nReturns:\n```javascript\n{\n    ASIN: \"B01IG0E1F0\",\n    url: \"https://www.amazon.com/gp/product/B01IG0E1F0/ref=s9u_nwrsa_gw_i3?ie=UTF8\u0026fpl=fresh\u0026pd_rd_i=B01IG0E1F0\u0026pd_rd_r=HX877ZSJ45VZ39AN59A1\u0026pd_rd_w=6aVbp\u0026pd_rd_wg=Yyiuk\u0026pf_rd_m=ATVPDKIKX0DER\u0026pf_rd_s=\u0026pf_rd_r=K1JQVYXFAG8F4WKVT3N0\u0026pf_rd_t=36701\u0026pf_rd_p=b15e70a0-40cd-4167-b336-ff44ea910cf2\u0026pf_rd_i=desktop\",\n    urlTld: \"com\"\n}\n```\n\n#### Async\n```js\nvar amazonAsin = require('amazon-asin');\n\namazonAsin.asyncParseAsin(\"http://amzn.to/2eEPcFk\");\n```\nReturns a *Promise* that would resolve to:\n```javascript\n{\n    ASIN: 'B00MH78O0M',\n    url: 'https://www.amazon.com/gp/product/B00MH78O0M/ref=as_li_ss_tl?ie=UTF8\u0026fpl=fresh\u0026pd_rd_i=B00MH78O0M\u0026pd_rd_r=Q6AGR9A4A9THVY19VQ00\u0026pd_rd_w=BQhKK\u0026pd_rd_wg=GythE\u0026pf_rd_m=ATVPDKIKX0DER\u0026pf_rd_s=\u0026pf_rd_r=W4JDGRRE10YC5P1762MT\u0026pf_rd_t=36701\u0026pf_rd_p=e8de777f-727a-4395-809e-49e84c65e636\u0026pf_rd_i=desktop\u0026linkCode=sl1\u0026tag=kaching05-20\u0026linkId=fb58756aff4e5b2fc514af0b120bbc52',\n    urlTld: 'com'\n}\n```\n\nRun the example [-\u003e](https://runkit.com/embed/g3ltcovs011l)\n\n## The fine print\n\n* For parsing permalinks please use the async method, since permalinks are basically HTTP 301 redirects.\n* You may also pass raw ASIN/ISBN numbers as arguments.\n* No exception is thrown on an invalid argument. The resulting object would simply contain *undefined*s.\n* Heavily influenced by [amazon-helpers](https://www.npmjs.com/package/amazon-helpers).\n* Join us on GitHub: https://github.com/vaiden/amazon-asin\n\n## License\n\nISC\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaiden%2Famazon-asin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvaiden%2Famazon-asin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvaiden%2Famazon-asin/lists"}