{"id":21482711,"url":"https://github.com/tim-hub/meta-marked-2020","last_synced_at":"2026-05-01T23:39:57.343Z","repository":{"id":54581970,"uuid":"232997797","full_name":"tim-hub/meta-marked-2020","owner":"tim-hub","description":"Simplese markdown + yaml metadata processor.","archived":false,"fork":false,"pushed_at":"2021-04-26T14:44:44.000Z","size":73,"stargazers_count":0,"open_issues_count":7,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-29T03:56:02.969Z","etag":null,"topics":["hexo","markdown","metadata","static-site-generator","yaml"],"latest_commit_sha":null,"homepage":"","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/tim-hub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-10T08:09:51.000Z","updated_at":"2020-04-29T06:11:52.000Z","dependencies_parsed_at":"2022-08-13T20:30:42.514Z","dependency_job_id":null,"html_url":"https://github.com/tim-hub/meta-marked-2020","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/tim-hub/meta-marked-2020","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim-hub%2Fmeta-marked-2020","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim-hub%2Fmeta-marked-2020/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim-hub%2Fmeta-marked-2020/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim-hub%2Fmeta-marked-2020/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tim-hub","download_url":"https://codeload.github.com/tim-hub/meta-marked-2020/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tim-hub%2Fmeta-marked-2020/sbom","scorecard":{"id":885450,"data":{"date":"2025-08-11","repo":{"name":"github.com/tim-hub/meta-marked-2020","commit":"14706dbacdea43e0abfdccbeb02c9d160bad53c8"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"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":"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":"Code-Review","score":0,"reason":"Found 0/20 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":"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":"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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/nodejs.yml:1","Warn: no topLevel permission defined: .github/workflows/npmpublish.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":"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/nodejs.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/tim-hub/meta-marked-2020/nodejs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/nodejs.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/tim-hub/meta-marked-2020/nodejs.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npmpublish.yml:11: update your workflow using https://app.stepsecurity.io/secureworkflow/tim-hub/meta-marked-2020/npmpublish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npmpublish.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/tim-hub/meta-marked-2020/npmpublish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npmpublish.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/tim-hub/meta-marked-2020/npmpublish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npmpublish.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/tim-hub/meta-marked-2020/npmpublish.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/nodejs.yml:22","Warn: npmCommand not pinned by hash: .github/workflows/nodejs.yml:29","Warn: npmCommand not pinned by hash: .github/workflows/npmpublish.yml:28","Warn: npmCommand not pinned by hash: .github/workflows/npmpublish.yml:16","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   4 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":"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":"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":"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 10 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-24T09:51:08.252Z","repository_id":54581970,"created_at":"2025-08-24T09:51:08.252Z","updated_at":"2025-08-24T09:51:08.252Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32517232,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["hexo","markdown","metadata","static-site-generator","yaml"],"created_at":"2024-11-23T12:35:33.197Z","updated_at":"2026-05-01T23:39:57.324Z","avatar_url":"https://github.com/tim-hub.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# meta-marked-2020\n[![codecov](https://codecov.io/gh/tim-hub/meta-marked-2020/branch/master/graph/badge.svg)](https://codecov.io/gh/tim-hub/meta-marked-2020) [![Renovate](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com)\n\n**The [marked](http://github.com/chjj/marked) markdown processor for Node.js with support for [YAML](http://yaml.org/) metadata**\n\nThis is a fork of [j201/meta-marked](https://github.com/j201/meta-marked), the upstream is not maintained. \n# about\n## why meta-marked-2020\n- updated dependency\n- handle hexo markdown files (in markdown hexo generated, there is no `---` at beginning of file)\n\n## original idea\nJust a quick extension I needed for processing markdown in Node. Props to Christopher Jeffrey for his excellent markdown processor 'marked'.\n\nThe `meta-marked-2020` function behaves exactly the same as [`marked`](http://github.com/chjj/marked#usage), except for the following:\n\n- Instead of returning a parsed string, `meta-marked` returns an object with the following properties:\n\t- `meta` contains the metadata object or `null` if metadata isn't found\n\t- `html` contains the parsed HTML\n\t- `markdown` contains the text of the markdown section of the string\n- `metaMarked.noMeta` is a reference to the `marked` function, so it can be used to avoid parsing metadata.\n\nIn order to include metadata in a document, insert YAML at the top of the document surrounded by `---` and `...`. Note that if the given string doesn't start with `---`, it will not be interpreted as having metadata.\n\n# how to\n```javascript\nconst metaMarked = require(\"meta-marked-2020\");\nconst obj = new metaMarked(\"---yaml meta --- markdown\");\n```\n\n## Example\n\n```\n---\nTitle:   My awesome markdown file\nAuthor:  Me\nScripts:\n    - js/doStuff.js\n    - js/doMoreStuff.js\n...\n\n##Header\nRegular text and stuff goes here.\n```\n\nYou can also use the approach below, which will result in a very nice data table at the top of your markdown when viewing the file GitHub:\n\n```\n---\nTitle:   My awesome markdown file\nAuthor:  Me\nScripts:\n    - js/doStuff.js\n    - js/doMoreStuff.js\n---\n\n##Header\nRegular text and stuff goes here.\n```\n\nBoth of the above will result in the following output:\n\n```\n{\n\t\"meta\": {\n\t\t\"Title\": \"My awesome markdown file\",\n\t\t\"Author\": \"Me\",\n\t\t\"Scripts\": [\n\t\t\t\"js/doStuff.js\",\n\t\t\t\"js/doMoreStuff.js\"\n\t\t]\n\t},\n\t\"html\": \"\u003ch2\u003eHeader\u003c/h2\u003e\\n\u003cp\u003eRegular text and stuff goes here.\u003c/p\u003e\\n\",\n\t\"markdown\": \"\\n\\n##Header\\nRegular text and stuff goes here.\"\n}\n```\n\n###Testing\n\n```\nnpm test\n```\n\n---\n\nLicensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftim-hub%2Fmeta-marked-2020","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftim-hub%2Fmeta-marked-2020","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftim-hub%2Fmeta-marked-2020/lists"}