{"id":13782348,"url":"https://github.com/umstek/parcel-plugin-md-fm","last_synced_at":"2025-05-05T18:46:02.472Z","repository":{"id":32991538,"uuid":"148956211","full_name":"umstek/parcel-plugin-md-fm","owner":"umstek","description":"@parcel-bundler plugin for loading markdown with parsed front-matter","archived":false,"fork":false,"pushed_at":"2023-10-23T17:56:31.000Z","size":1918,"stargazers_count":8,"open_issues_count":13,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-22T13:26:02.312Z","etag":null,"topics":["frontmatter","markdown","parcel-bundler"],"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/umstek.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}},"created_at":"2018-09-16T02:26:03.000Z","updated_at":"2022-05-19T18:48:50.000Z","dependencies_parsed_at":"2024-01-06T23:53:40.405Z","dependency_job_id":null,"html_url":"https://github.com/umstek/parcel-plugin-md-fm","commit_stats":{"total_commits":36,"total_committers":4,"mean_commits":9.0,"dds":0.5277777777777778,"last_synced_commit":"914f21df5b1afc6bcbc542f81483c43216f2d100"},"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umstek%2Fparcel-plugin-md-fm","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umstek%2Fparcel-plugin-md-fm/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umstek%2Fparcel-plugin-md-fm/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/umstek%2Fparcel-plugin-md-fm/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/umstek","download_url":"https://codeload.github.com/umstek/parcel-plugin-md-fm/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252555747,"owners_count":21767225,"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":["frontmatter","markdown","parcel-bundler"],"created_at":"2024-08-03T18:01:35.568Z","updated_at":"2025-05-05T18:46:02.453Z","avatar_url":"https://github.com/umstek.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Templates"],"readme":"# parcel-plugin-md-fm\n\nParcel plugin for loading markdown with parsed frontmatter.\n\n## Install\n\nWith npm:\n\n```bash\nnpm install parcel-plugin-md-fm --save-dev\n```\n\nWith yarn:\n\n```bash\nyarn add --dev parcel-plugin-md-fm\n```\n\n## Use\n\nImporting:\n\n```js\nimport { content, data } from \"./file.md\";\n```\n\nIf you get errors or red underlines in editors, add a `markdown.d.ts` file containing:\n\n```ts\ndeclare module \"*.md\" {\n  const content: string;\n  const data: object;\n}\n```\n\n## Test\n\nTests not implemented yet.\n\n## About\n\nThis uses the excellent `gray-matter` library under the hood which separates and then translates `yaml` or other frontmatter from a markdown file. See [jonschlinkert/gray-matter](https://github.com/jonschlinkert/gray-matter#returned-object) for the exact result format.\n\nMarkdown is returned as a string (`content`) without further parsing so that you can use it with a parser/formatter of your choice like [markdown-to-jsx](https://github.com/probablyup/markdown-to-jsx) (if you're using react).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumstek%2Fparcel-plugin-md-fm","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fumstek%2Fparcel-plugin-md-fm","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fumstek%2Fparcel-plugin-md-fm/lists"}