{"id":15646128,"url":"https://github.com/blakeembrey/node-htmlmetaparser","last_synced_at":"2026-02-05T23:32:21.928Z","repository":{"id":46155728,"uuid":"71662651","full_name":"blakeembrey/node-htmlmetaparser","owner":"blakeembrey","description":"A `htmlparser2` handler for parsing rich metadata from HTML. Includes HTML metadata, JSON-LD, RDFa, microdata, OEmbed, Twitter cards and AppLinks.","archived":false,"fork":false,"pushed_at":"2023-12-07T08:46:55.000Z","size":7272,"stargazers_count":57,"open_issues_count":1,"forks_count":16,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-11-13T00:19:36.695Z","etag":null,"topics":["applink","facebook","handler","html","htmlparser2","json-ld","metadata","microdata","rdfa","twitter"],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blakeembrey.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-22T20:02:28.000Z","updated_at":"2025-08-27T12:10:31.000Z","dependencies_parsed_at":"2024-06-18T17:09:32.540Z","dependency_job_id":"b67e6b7f-60f7-47c1-ad66-cf84b1d861bc","html_url":"https://github.com/blakeembrey/node-htmlmetaparser","commit_stats":{"total_commits":83,"total_committers":8,"mean_commits":10.375,"dds":"0.24096385542168675","last_synced_commit":"fb12463e37a4c784754cc43985e5e068be17b3c3"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/blakeembrey/node-htmlmetaparser","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blakeembrey%2Fnode-htmlmetaparser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blakeembrey%2Fnode-htmlmetaparser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blakeembrey%2Fnode-htmlmetaparser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blakeembrey%2Fnode-htmlmetaparser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blakeembrey","download_url":"https://codeload.github.com/blakeembrey/node-htmlmetaparser/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blakeembrey%2Fnode-htmlmetaparser/sbom","scorecard":{"id":242600,"data":{"date":"2025-08-11","repo":{"name":"github.com/blakeembrey/node-htmlmetaparser","commit":"fb12463e37a4c784754cc43985e5e068be17b3c3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.3,"checks":[{"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":"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":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.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":"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":"Code-Review","score":1,"reason":"Found 4/25 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":"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":"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":"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":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Pinned-Dependencies","score":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/blakeembrey/node-htmlmetaparser/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/blakeembrey/node-htmlmetaparser/ci.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/blakeembrey/node-htmlmetaparser/ci.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/blakeembrey/node-htmlmetaparser/ci.yml/main?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/ci.yml:26","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   1 out of   2 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":"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 'main'"],"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 9 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":0,"reason":"18 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-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-67mh-4wv8-2f99","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c24v-8rfc-w8vw","Warn: Project is vulnerable to: GHSA-8jhw-289h-jh2g","Warn: Project is vulnerable to: GHSA-64vr-g452-qvp3","Warn: Project is vulnerable to: GHSA-9cwx-2883-4wfx","Warn: Project is vulnerable to: GHSA-vg6x-rcgg-rjx6","Warn: Project is vulnerable to: GHSA-x574-m823-4x7w","Warn: Project is vulnerable to: GHSA-4r4m-qw57-chr8","Warn: Project is vulnerable to: GHSA-xcj6-pq6g-qj4x","Warn: Project is vulnerable to: GHSA-356w-63v5-8wf4","Warn: Project is vulnerable to: GHSA-859w-5945-r5v3","Warn: Project is vulnerable to: GHSA-9crc-q9x8-hgqq"],"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-17T06:55:39.458Z","repository_id":46155728,"created_at":"2025-08-17T06:55:39.458Z","updated_at":"2025-08-17T06:55:39.458Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29138375,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-05T23:14:48.546Z","status":"ssl_error","status_checked_at":"2026-02-05T23:14:35.724Z","response_time":65,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["applink","facebook","handler","html","htmlparser2","json-ld","metadata","microdata","rdfa","twitter"],"created_at":"2024-10-03T12:11:29.273Z","updated_at":"2026-02-05T23:32:21.869Z","avatar_url":"https://github.com/blakeembrey.png","language":"HTML","readme":"# htmlmetaparser\n\n[![NPM version][npm-image]][npm-url]\n[![NPM downloads][downloads-image]][downloads-url]\n[![Build status][build-image]][build-url]\n[![Build coverage][coverage-image]][coverage-url]\n\n\u003e A `htmlparser2` handler for parsing rich metadata from HTML. Includes HTML metadata, JSON-LD, RDFa, microdata, OEmbed, Twitter cards and AppLinks.\n\n## Installation\n\n```sh\nnpm install htmlmetaparser --save\n```\n\n## Usage\n\n[Try it using Runkit!](https://runkit.com/blakeembrey/htmlmetaparser)\n\n```ts\nimport { Handler } from \"htmlmetaparser\";\nimport { Parser } from \"htmlparser2\";\n\nconst url =\n  \"https://medium.com/slack-developer-blog/everything-you-ever-wanted-to-know-about-unfurling-but-were-afraid-to-ask-or-how-to-make-your-e64b4bb9254\";\n\nconst handler = new Handler(\n  (err, result) =\u003e {\n    console.log(result);\n  },\n  {\n    url, // The HTML pages URL is used to resolve relative URLs.\n  },\n);\n\n// Create a HTML parser with the handler.\nconst parser = new Parser(handler, { decodeEntities: true });\nparser.write(html);\nparser.end();\n\n/*\nObject {\n  \"alternate\": Array [],\n  \"applinks\": Object {\n    \"android:app_name\": \"Medium\",\n    \"android:package\": \"com.medium.reader\",\n    \"android:url\": \"medium://p/e64b4bb9254\",\n    \"ios:app_name\": \"Medium\",\n    \"ios:app_store_id\": \"828256236\",\n    \"ios:url\": \"medium://p/e64b4bb9254\",\n    \"web:url\": \"https://medium.com/slack-developer-blog/everything-you-ever-wanted-to-know-about-unfurling-but-were-afraid-to-ask-or-how-to-make-your-e64b4bb9254\",\n  },\n  \"html\": Object {\n    \"author\": \"Matt Haughey\",\n    \"canonical\": \"https://medium.com/slack-developer-blog/everything-you-ever-wanted-to-know-about-unfurling-but-were-afraid-to-ask-or-how-to-make-your-e64b4bb9254\",\n    \"description\": \"Let’s start with the most obvious question first. This is what an “unfurl” is:\",\n    \"robots\": \"index, follow\",\n    \"title\": \"Everything you ever wanted to know about unfurling but were afraid to ask /or/ How to make your… – Slack Platform Blog – Medium\",\n    \"viewport\": \"width=device-width, initial-scale=1\",\n  },\n  \"jsonld\": Object {\n    \"@context\": \"http://schema.org\",\n    \"@type\": \"NewsArticle\",\n    \"author\": Object {\n      \"@type\": \"Person\",\n      \"name\": \"Matt Haughey\",\n      \"url\": \"https://medium.com/@mathowie\",\n    },\n    \"creator\": Array [\n      \"Matt Haughey\",\n    ],\n    \"dateModified\": \"2016-04-08T05:59:26.776Z\",\n    \"datePublished\": \"2015-11-24T21:33:25.196Z\",\n    \"headline\": \"Everything you ever wanted to know about unfurling but were afraid to ask /or/ How to make your…\",\n    \"image\": Object {\n      \"@type\": \"ImageObject\",\n      \"height\": 2000,\n      \"url\": \"https://cdn-images-1.medium.com/max/1360/1*QOMaDLcO8rExD0ctBV3BWg.png\",\n      \"width\": 1360,\n    },\n    \"keywords\": Array [\n      \"Web Development\",\n      \"Slack\",\n      \"How To\",\n    ],\n    \"mainEntityOfPage\": \"https://medium.com/slack-developer-blog/everything-you-ever-wanted-to-know-about-unfurling-but-were-afraid-to-ask-or-how-to-make-your-e64b4bb9254\",\n    \"name\": \"Everything you ever wanted to know about unfurling but were afraid to ask /or/ How to make your…\",\n    \"publisher\": Object {\n      \"@type\": \"Organization\",\n      \"logo\": Object {\n        \"@type\": \"ImageObject\",\n        \"height\": 60,\n        \"url\": \"https://cdn-images-1.medium.com/max/215/1*5ztbgEt4NqpVaxTc64C-XA.png\",\n        \"width\": 215,\n      },\n      \"name\": \"Slack Platform Blog\",\n      \"url\": \"https://medium.com/slack-developer-blog\",\n    },\n  },\n  \"rdfa\": Object {\n    \"@context\": Object {\n      \"article\": \"http://ogp.me/ns/article#\",\n      \"cc\": \"https://creativecommons.org/ns#\",\n      \"fb\": \"http://ogp.me/ns/fb#\",\n      \"medium-com\": \"http://ogp.me/ns/fb/medium-com#\",\n      \"og\": \"http://ogp.me/ns#\",\n    },\n    \"@graph\": Array [\n      Object {\n        \"al:android:app_name\": \"Medium\",\n        \"al:android:package\": \"com.medium.reader\",\n        \"al:android:url\": \"medium://p/e64b4bb9254\",\n        \"al:ios:app_name\": \"Medium\",\n        \"al:ios:app_store_id\": \"828256236\",\n        \"al:ios:url\": \"medium://p/e64b4bb9254\",\n        \"al:web:url\": \"https://medium.com/slack-developer-blog/everything-you-ever-wanted-to-know-about-unfurling-but-were-afraid-to-ask-or-how-to-make-your-e64b4bb9254\",\n        \"article:author\": \"https://medium.com/@mathowie\",\n        \"article:published_time\": \"2015-11-24T21:33:25.196Z\",\n        \"article:publisher\": \"https://www.facebook.com/medium\",\n        \"cc:attributionName\": Object {\n          \"@language\": \"en\",\n          \"@type\": undefined,\n          \"@value\": \"https://medium.com/@mathowie\",\n        },\n        \"cc:attributionUrl\": Object {\n          \"@id\": \"https://medium.com/@mathowie\",\n        },\n        \"fb:app_id\": \"542599432471018\",\n        \"fb:smart_publish:robots\": \"noauto\",\n        \"og:description\": \"Let’s start with the most obvious question first. This is what an “unfurl” is:\",\n        \"og:image\": \"https://cdn-images-1.medium.com/max/1200/1*QOMaDLcO8rExD0ctBV3BWg.png\",\n        \"og:site_name\": \"Medium\",\n        \"og:title\": \"Everything you ever wanted to know about unfurling but were afraid to ask /or/ How to make your… – Slack Platform Blog\",\n        \"og:type\": \"article\",\n        \"og:url\": \"https://medium.com/slack-developer-blog/everything-you-ever-wanted-to-know-about-unfurling-but-were-afraid-to-ask-or-how-to-make-your-e64b4bb9254\",\n      },\n    ],\n  },\n  \"twitter\": Object {\n    \"app:id:iphone\": \"828256236\",\n    \"app:name:iphone\": \"Medium\",\n    \"app:url:iphone\": \"medium://p/e64b4bb9254\",\n    \"card\": \"summary_large_image\",\n    \"creator\": \"@mathowie\",\n    \"description\": \"Let’s start with the most obvious question first. This is what an “unfurl” is:\",\n    \"image:src\": \"https://cdn-images-1.medium.com/max/1200/1*QOMaDLcO8rExD0ctBV3BWg.png\",\n    \"site\": \"@Medium\",\n  },\n}\n*/\n```\n\n**Please note:** No HTTP requests are made by `htmlmetaparser`. You must decide what you want to retrieve by traversing the `alternate` array and making requests manually (E.g. external JSON-LD documents, RDF documents, OEmbed, RSS).\n\n## Development\n\n```sh\n# Build fixtures and providers.\nnpm run vendor \u0026\u0026 npm run fixtures\n\n# Run the test suite.\nnpm test\n\n# Run the test suite and update snapshots.\nnpm test -- -u\n```\n\n## License\n\nApache 2.0\n\n[npm-image]: https://img.shields.io/npm/v/htmlmetaparser.svg?style=flat\n[npm-url]: https://npmjs.org/package/htmlmetaparser\n[downloads-image]: https://img.shields.io/npm/dm/htmlmetaparser.svg?style=flat\n[downloads-url]: https://npmjs.org/package/htmlmetaparser\n[build-image]: https://img.shields.io/github/actions/workflow/status/blakeembrey/node-htmlmetaparser/ci.yml?branch=main\n[build-url]: https://github.com/blakeembrey/node-htmlmetaparser/actions/workflows/ci.yml?query=branch%3Amain\n[coverage-image]: https://img.shields.io/codecov/c/gh/blakeembrey/node-htmlmetaparser\n[coverage-url]: https://codecov.io/gh/blakeembrey/node-htmlmetaparser\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblakeembrey%2Fnode-htmlmetaparser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblakeembrey%2Fnode-htmlmetaparser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblakeembrey%2Fnode-htmlmetaparser/lists"}