{"id":22489401,"url":"https://github.com/phuctm97/remark-parse-frontmatter","last_synced_at":"2026-02-13T19:35:53.193Z","repository":{"id":36984060,"uuid":"324342047","full_name":"phuctm97/remark-parse-frontmatter","owner":"phuctm97","description":"🎓 Parses and validates Markdown frontmatter (YAML) to data object.","archived":false,"fork":false,"pushed_at":"2023-02-27T03:06:46.000Z","size":59,"stargazers_count":11,"open_issues_count":10,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-05T16:12:20.403Z","etag":null,"topics":["commonmark","extension","frontmatter","markdown","plugin","remark","remark-plugin","unified","unified-plugin","yaml"],"latest_commit_sha":null,"homepage":"","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/phuctm97.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-25T10:36:59.000Z","updated_at":"2025-09-05T22:41:09.000Z","dependencies_parsed_at":"2024-06-18T22:57:33.178Z","dependency_job_id":"8d7ff2e5-d298-4473-8360-6944986c39f0","html_url":"https://github.com/phuctm97/remark-parse-frontmatter","commit_stats":{"total_commits":29,"total_committers":3,"mean_commits":9.666666666666666,"dds":0.4482758620689655,"last_synced_commit":"9b70117427134efce8b0f693149b6c92be529672"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/phuctm97/remark-parse-frontmatter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phuctm97%2Fremark-parse-frontmatter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phuctm97%2Fremark-parse-frontmatter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phuctm97%2Fremark-parse-frontmatter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phuctm97%2Fremark-parse-frontmatter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phuctm97","download_url":"https://codeload.github.com/phuctm97/remark-parse-frontmatter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phuctm97%2Fremark-parse-frontmatter/sbom","scorecard":{"id":732642,"data":{"date":"2025-08-11","repo":{"name":"github.com/phuctm97/remark-parse-frontmatter","commit":"9b70117427134efce8b0f693149b6c92be529672"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"checks":[{"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/phuctm97/remark-parse-frontmatter/pr.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/phuctm97/remark-parse-frontmatter/pr.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/phuctm97/remark-parse-frontmatter/pr.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/phuctm97/remark-parse-frontmatter/pr.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/phuctm97/remark-parse-frontmatter/pr.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction 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":"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":"Code-Review","score":0,"reason":"Found 1/17 approved changesets -- score normalized to 0","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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/pr.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":"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 13 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"}}]},"last_synced_at":"2025-08-22T14:52:25.385Z","repository_id":36984060,"created_at":"2025-08-22T14:52:25.385Z","updated_at":"2025-08-22T14:52:25.385Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29415893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"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":["commonmark","extension","frontmatter","markdown","plugin","remark","remark-plugin","unified","unified-plugin","yaml"],"created_at":"2024-12-06T17:19:48.839Z","updated_at":"2026-02-13T19:35:53.173Z","avatar_url":"https://github.com/phuctm97.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# 🎓 remark-parse-frontmatter\n\n[![Github checks][checks badge]][checks url]\n[![npm version][npm badge]][npm url]\n[![Code style][code style badge]][code style url]\n[![GitHub license][license badge]][license url]\n\nParses and validates Markdown frontmatter (YAML) to `file.data.frontmatter`.\n\nValidation is done by [revalidator].\n\nBuilt for Remark 12, won't work with Remark 13. Requires [remark-frontmatter].\n\n## Example\n\n`example.js`:\n\n```js\nconst processor = remark()\n  .use(require(\"remark-frontmatter\"))\n  .use(require(\"remark-parse-frontmatter\"))\n  .freeze();\n\nconst file = processor.processSync(`\n---\ntitle: Hello, World!\n---\n`);\n\nconsole.log(file.data.frontmatter);\n```\n\nOutput:\n\n```\n{\n  title: \"Hello, World!\"\n}\n```\n\n## Usage\n\n### Install\n\n```bash\nyarn add remark-parse-frontmatter\n```\n\n### Configure\n\nUnified / Remark:\n\n```js\n// Without validation\nunified()\n  .use(require(\"remark-parse\"))\n  .use(require(\"remark-frontmatter\"))\n  .use(require(\"remark-parse-frontmatter\"))\n  .use(require(\"remark-stringify\"));\n\n// With validation\nunified()\n  .use(require(\"remark-parse\"))\n  .use(require(\"remark-frontmatter\"))\n  .use(require(\"remark-parse-frontmatter\"), {\n    properties: {\n      title: { type: \"string\", required: true },\n      tags: { type: \"array\", maxItems: 4 },\n    },\n  })\n  .use(require(\"remark-stringify\"));\n```\n\n```js\n// Without validation.\nremark()\n  .use(require(\"remark-frontmatter\"))\n  .use(require(\"remark-parse-frontmatter\"));\n\n// With validation.\nremark()\n  .use(require(\"remark-frontmatter\"))\n  .use(require(\"remark-parse-frontmatter\"), {\n    properties: {\n      title: { type: \"string\", required: true },\n      tags: { type: \"array\", maxItems: 4 },\n    },\n  });\n```\n\nMDX:\n\n```js\n// Without validation.\nmdx(mdxText, {\n  remarkPlugins: [\n    require(\"remark-unwrap-texts\"),\n    require(\"remark-parse-frontmatter\"),\n  ],\n});\n\n// With validation.\nmdx(mdxText, {\n  remarkPlugins: [\n    require(\"remark-unwrap-texts\"),\n    [\n      require(\"remark-parse-frontmatter\"),\n      {\n        properties: {\n          title: { type: \"string\", required: true },\n          tags: { type: \"array\", maxItems: 4 },\n        },\n      },\n    ],\n  ],\n});\n```\n\n---\n\nMade by [@phuctm97].\n\n\u003c!-- Badges --\u003e\n\n[checks badge]:\n  https://img.shields.io/github/checks-status/phuctm97/remark-parse-frontmatter/master?logo=Github\n[npm badge]: https://img.shields.io/npm/v/remark-parse-frontmatter?logo=npm\n[code style badge]:\n  https://img.shields.io/badge/code%20style-prettier-F7B93E?logo=Prettier\n[license badge]:\n  https://img.shields.io/github/license/phuctm97/remark-parse-frontmatter\n[checks url]:\n  https://github.com/phuctm97/remark-parse-frontmatter/actions?query=workflow%3APR+branch%3Amaster\n[npm url]: https://www.npmjs.com/package/remark-parse-frontmatter\n[code style url]: /.prettierrc.json\n[license url]: /LICENSE\n\n\u003c!-- Links --\u003e\n\n[@phuctm97]: https://twitter.com/phuctm97\n[remark-frontmatter]: https://github.com/remarkjs/remark-frontmatter\n[revalidator]: https://github.com/flatiron/revalidator\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphuctm97%2Fremark-parse-frontmatter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphuctm97%2Fremark-parse-frontmatter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphuctm97%2Fremark-parse-frontmatter/lists"}