{"_id":"@astro-m2dx/remark-astro-frontmatter","_rev":"2-189bafa6572e7facab1a4c64cf963947","name":"@astro-m2dx/remark-astro-frontmatter","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.1":{"name":"@astro-m2dx/remark-astro-frontmatter","version":"0.0.1","description":"Remark plugin to add common frontmatter to markdown files","author":{"name":"christian@hackyourshack.org"},"homepage":"https://astro-m2dx.netlify.app/docs/plugin-remark-astro-frontmatter","repository":{"type":"git","url":"git+https://github.com/astro-m2dx/astro-m2dx.git#main"},"license":"MIT","keywords":["remark-plugin","astro","markdown","frontmatter"],"main":"lib/index.js","types":"lib/index.d.ts","type":"module","devDependencies":{"@types/js-yaml":"^4.0.5","@types/mdast":"^3.0.10","eslint-config-base":"0.0.0","rimraf":"^3.0.2","tsconfig":"0.0.0","typescript":"^4.7.4","unified":"^10.1.2"},"dependencies":{"@astro-m2dx/common":"0.0.5","js-yaml":"^4.1.0"},"scripts":{"build":"tsc","clean":"rimraf -rf ./lib/"},"bugs":{"url":"https://github.com/astro-m2dx/astro-m2dx/issues"},"_id":"@astro-m2dx/remark-astro-frontmatter@0.0.1","_integrity":"sha512-qEfCtFwbuCw8YTnLcObguZq1wd6FA+cG+Jk+Azq3dWXTWX0oymt5g5ZwD8Oiibw7fbOYcK/ncHnBCHbvFhN3HQ==","_resolved":"/tmp/0823cad528d10a3de94b9bd8b5594ec4/astro-m2dx-remark-astro-frontmatter-0.0.1.tgz","_from":"file:astro-m2dx-remark-astro-frontmatter-0.0.1.tgz","_nodeVersion":"16.17.0","_npmVersion":"8.15.0","dist":{"integrity":"sha512-qEfCtFwbuCw8YTnLcObguZq1wd6FA+cG+Jk+Azq3dWXTWX0oymt5g5ZwD8Oiibw7fbOYcK/ncHnBCHbvFhN3HQ==","shasum":"9ddb795c71884639ad49b4b273881714e9cf7a9a","tarball":"https://registry.npmjs.org/@astro-m2dx/remark-astro-frontmatter/-/remark-astro-frontmatter-0.0.1.tgz","fileCount":6,"unpackedSize":7296,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFCq3aXI3AAd3R4fJnr/uux0lsl//QFE/58RjcGSJ8vbAiBlnQzqj0ack5/f5NJv+Stt4iVnpwFNNUQR9910wm/PDg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjH3MpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpVBhAAiJqh4Oudl3H7JJ6j32sAb3eVUq0xQ1B/bybdlI7fk2DBYZMG\r\nZhCtvjaceDOFCWqkmSV+q/z8uIZQLp023iEt8nsv1Bm9kUyIy8G9F7yRk9Nx\r\nd6g8IXjhkTRUOUdbl6kbzURXhEp3GXA/aNFOiNY487GDUsQy2x0rtPJvZ3oK\r\noqgATiBCBnfSGFvXOD4pzXEbZsPl2BwRVXtcw3kYNvYswE/APP/D6Yni3z8l\r\nUfdaIs9iJYqAs+NIxtIfX0iW/h9r89fNLx1Z/vqJIOPHXjzSGjcFo68cYtfG\r\nQ1EMGlrgtzrFDgIQyu1e1YkppbajrO0HxT3VRabW2yihJVCCUS2fBYtRi6XJ\r\nU4H+zULVYtvSkU/uMg7DsVgB98WuQPPySFAFH0o36aK5k889XmqKc+lGanxZ\r\nrnhwfsGCg6Rw/3whmWMFuSgHh/eiMz6W9rhrGvncGKiKT6jXOFzn/R3kMWTU\r\nZSDuPMyWLjd2K6+u3DXcH3iQXcxRlJPaKI0QQosXqR17IJYK3zPCvHsG1lhr\r\n0ioXk0Vt7WdRBpFo/Rof06/ais7en3XUrsvNaft+i/4V1HrDp5Ch75UGtMdT\r\nVVME2uGAKSFkdBIkgNN39q7pLuKJF7+gOMjzDXaqCVU42YfE9ibOWWehi7pj\r\nfvlVkgX2NPpDI+sQSDuzEtwd8KuZzH+YlwA=\r\n=0GuL\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"shackhacker-christian","email":"christian@hackyourshack.org"},"directories":{},"maintainers":[{"name":"shackhacker-christian","email":"christian@hackyourshack.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-astro-frontmatter_0.0.1_1663005481581_0.5779057975194746"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"0.0.2":{"name":"@astro-m2dx/remark-astro-frontmatter","version":"0.0.2","description":"Remark plugin to add common frontmatter to markdown files","author":{"name":"christian@hackyourshack.org"},"homepage":"https://astro-m2dx.netlify.app/docs/plugin-remark-astro-frontmatter","repository":{"type":"git","url":"git+https://github.com/astro-m2dx/astro-m2dx.git#main"},"license":"MIT","keywords":["remark-plugin","astro","markdown","frontmatter"],"main":"lib/index.js","types":"lib/index.d.ts","type":"module","devDependencies":{"@types/js-yaml":"^4.0.5","@types/mdast":"^3.0.10","eslint-config-base":"0.0.0","rimraf":"^3.0.2","tsconfig":"0.0.0","typescript":"^4.7.4","unified":"^10.1.2"},"dependencies":{"@astro-m2dx/common":"0.0.6","js-yaml":"^4.1.0"},"scripts":{"build":"tsc","clean":"rimraf -rf ./lib/"},"bugs":{"url":"https://github.com/astro-m2dx/astro-m2dx/issues"},"_id":"@astro-m2dx/remark-astro-frontmatter@0.0.2","_integrity":"sha512-aXu1656kdbZqPZrR+fUBtHBxLe8v2KL19px6ANOkl2mGJCIKICqqBHxB2HEpvy+RNJogVPXp5VSOIXfEtRIJ/w==","_resolved":"/tmp/995dad43c8dab80bd27afafb70585c5e/astro-m2dx-remark-astro-frontmatter-0.0.2.tgz","_from":"file:astro-m2dx-remark-astro-frontmatter-0.0.2.tgz","_nodeVersion":"16.17.1","_npmVersion":"8.15.0","dist":{"integrity":"sha512-aXu1656kdbZqPZrR+fUBtHBxLe8v2KL19px6ANOkl2mGJCIKICqqBHxB2HEpvy+RNJogVPXp5VSOIXfEtRIJ/w==","shasum":"3b3bd11ffe915a24004c889b40ecfb520615a550","tarball":"https://registry.npmjs.org/@astro-m2dx/remark-astro-frontmatter/-/remark-astro-frontmatter-0.0.2.tgz","fileCount":6,"unpackedSize":7513,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDd6xKp15gedD8ql4CqzkNF8OErtM14xf1iGVrBCPoaFgIgZoy5S8gzRbmPtC+GjpNt61gw2MXTSp1fDYiDsTJ87Ko="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjRU8XACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrGZQ//WHmGPsljrrwVbfFGtsbEKQRvoUOOkgsJWCSlIQhU9EOdTvrF\r\n4CwrSXfy97IQi1tjdGx+foRPFJCcT2p6lNsE224qFRGupAe3w6m2L/sS8YRd\r\nEtUpwsVeU6puBo+i1ajc+Tg8z+SiftXqQUNJ2HQzLkcuHSNMVzmidpxIBGhP\r\nCESc6Rofh1Sl4MPr/Ea6nneZ714U66NvU93aYux0NHUCuGKej9KeoN+GdOGY\r\nMnCUeMU3+gc98+HUSIqv2mrCW50M7x0DVC/O1LTPeo1vRCZYdCZq3LZthm4q\r\nYYAYy5LHQg6tctxQq3/IwV7cq87qyFwMbbBAk9GcnMZ8K4VseLI520MGOzJm\r\n17G0VwQiLKg9HTUjSgnmSYBK6E0MeOtVKsvV1tuU8FrMaxdSrAHvZ0WDVTDc\r\nzWSqgPXzMEpdibLCl7e45vmNZUGNtrYMFHKFmUG/xnnlQcRv8Sxw4WcnXsLo\r\nk56K0FQ0TKDtSDHkPU5XzNfUt3bMhFw1Yf/ix7Ztm6283zjO3iSvwjtE9Xfl\r\n+sQjmsaWyW8xTNyswuFNSaIDyURyaS/YedxONuu69jUor/sGXblwdvy4p9ej\r\n5Ysixwz79U3mL5SiNeJtC50in8Studn+Gk2Q+T4PU5dJUhQaX9/3JyjqJks+\r\nQ3IyBBTmqd8DW6+g50zyeF2xoAGjy7v/Y8g=\r\n=I6N/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"shackhacker-christian","email":"christian@hackyourshack.org"},"directories":{},"maintainers":[{"name":"shackhacker-christian","email":"christian@hackyourshack.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-astro-frontmatter_0.0.2_1665486615160_0.23333529145283083"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"time":{"created":"2022-09-12T17:58:01.406Z","0.0.1":"2022-09-12T17:58:01.758Z","modified":"2022-10-11T11:21:55.345Z","0.0.2":"2022-10-11T11:10:15.315Z"},"maintainers":[{"name":"shackhacker-christian","email":"christian@hackyourshack.org"}],"description":"Remark plugin to add common frontmatter to markdown files","homepage":"https://astro-m2dx.netlify.app/docs/plugin-remark-astro-frontmatter","keywords":["remark-plugin","astro","markdown","frontmatter"],"repository":{"type":"git","url":"git+https://github.com/astro-m2dx/astro-m2dx.git#main"},"author":{"name":"christian@hackyourshack.org"},"bugs":{"url":"https://github.com/astro-m2dx/astro-m2dx/issues"},"license":"MIT","readme":"# Astro M²DX - Remark plugin for common frontmatter\n\n> **DEPRECATED:** Please consider using the plugin [astro-m2dx](https://www.npmjs.com/package/astro-m2dx), which bundles all features from the different `@astro-m2dx` plugins in one plugin (all features are opt-in).\n\nremark plugin to define common frontmatter for all Markdown files in a directory, e.g. to set a common layout for all files.\n\n[Astro M²DX](https://astro-m2dx.netlify.app) is a set of plugins allowing you to define an [Astro](https://astro.build) 🚀 publishing pipeline for Markdown/MDX documents with full [MDX](https://mdxjs.com) features, but without the technical fuss, i.e. you and your non-tech editors can write **clean** markdown.\n\nHave a look at the other [`astro-m2dx` plugins](https://www.npmjs.com/org/astro-m2dx).\n\n## Content <!-- omit in toc -->\n\n- [What is this?](#what-is-this)\n- [When should I use this?](#when-should-i-use-this)\n- [Install](#install)\n- [Use](#use)\n  - [Options](#options)\n\n## What is this?\n\nThis package is a [`remark`](https://github.com/remarkjs/remark/blob/main/doc/plugins.md) plugin for markdown files in the context of [Astro](https://docs.astro.build/en/guides/integrations-guide/mdx) site generation, that allows you to define common frontmatter for all markdown files in a directory and it's subdirectories.\n\n## When should I use this?\n\nIf you want to extract common frontmatter properties for all files in a directory, e.g. the `layout` to a common file within the directory (`_frontmatter.yaml` by default). This helps you, keep your markdown files and their frontmatter as clean as possible.\n\n## Install\n\nThis package is [ESM only](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c).\nIn Node.js (version 12.20+, 14.14+, or 16.0+), install with `npm`:\n\n```sh\nnpm install -D @astro-m2dx/remark-astro-frontmatter\n```\n\n## Use\n\nIn your `astro.config.mjs`\n\n```js\nimport { defineConfig } from 'astro/config';\n\nimport mdx from '@astrojs/mdx';\nimport frontmatter from '@astro-m2dx/remark-astro-frontmatter';\n// ^^^\n\n// https://astro.build/config\nexport default defineConfig({\n  integrations: [mdx()],\n  markdown: {\n    remarkPlugins: [frontmatter],\n    //              ^^^\n    extendDefaultPlugins: true,\n  },\n});\n```\n\nThis uses the default options, where the name of the frontmatter files is `_frontmatter.yaml`.\n\nNow you can create frontmatter files in your `src` directory to define common properties. The properties will be deeply merged, where properties from markdown file's frontmatter will have highest priority, and properties from frontmatter files closer to the markdown file will take precedence over properties from files higher up the tree.\n\n### Options\n\nIf you want to use a different name for the frontmatter files, you can specify it in the plugin's `name` option like so:\n\n```js\n    remarkPlugins: [[frontmatter, {name: \"_props.yaml\"}]],\n```\n","readmeFilename":"README.md"}