{"_id":"remark-frontmatter","_rev":"3267429","name":"remark-frontmatter","description":"remark plugin to support frontmatter (yaml, toml, and more)","dist-tags":{"latest":"5.0.0"},"maintainers":[{"name":"johno","email":"johnotander@gmail.com"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"time":{"modified":"2024-03-21T09:59:08.000Z","created":"2017-07-20T20:29:18.523Z","5.0.0":"2023-09-18T11:12:38.246Z","4.0.1":"2021-10-26T07:18:29.090Z","4.0.0":"2021-08-05T14:25:11.353Z","3.0.0":"2020-10-04T07:21:22.146Z","2.0.0":"2020-04-06T05:45:22.902Z","1.3.3":"2020-03-23T16:38:56.826Z","1.3.2":"2019-06-16T08:21:39.521Z","1.3.1":"2018-11-22T10:10:31.027Z","1.3.0":"2018-09-23T17:08:26.724Z","1.2.1":"2018-08-10T16:34:15.179Z","1.2.0":"2017-12-04T10:31:53.394Z","1.1.0":"2017-08-01T16:07:19.769Z","1.0.0":"2017-07-20T20:29:18.523Z"},"users":{},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"repository":{"type":"git","url":"git+https://github.com/remarkjs/remark-frontmatter.git"},"versions":{"5.0.0":{"name":"remark-frontmatter","version":"5.0.0","description":"remark plugin to support frontmatter (yaml, toml, and more)","license":"MIT","keywords":["frontmatter","markdown","mdast","plugin","remark","remark-plugin","toml","unified","yaml"],"repository":{"type":"git","url":"git+https://github.com/remarkjs/remark-frontmatter.git"},"bugs":{"url":"https://github.com/remarkjs/remark-frontmatter/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},{"name":"Lars Trieloff","email":"lars@trieloff.net"},{"name":"Max Kueng","email":"me@maxkueng.com"}],"sideEffects":false,"type":"module","exports":"./index.js","dependencies":{"@types/mdast":"^4.0.0","mdast-util-frontmatter":"^2.0.0","micromark-extension-frontmatter":"^2.0.0","unified":"^11.0.0"},"devDependencies":{"@types/node":"^20.0.0","c8":"^8.0.0","is-hidden":"^2.0.0","prettier":"^3.0.0","remark":"^15.0.0","remark-cli":"^11.0.0","remark-preset-wooorm":"^9.0.0","type-coverage":"^2.0.0","typescript":"^5.0.0","vfile":"^6.0.0","xo":"^0.56.0"},"scripts":{"build":"tsc --build --clean && tsc --build && type-coverage","format":"remark . --frail --output --quiet && prettier . --log-level warn --write && xo --fix","prepack":"npm run build && npm run format","test":"npm run build && npm run format && npm run test-coverage","test-api":"node --conditions development test/index.js","test-coverage":"c8 --100 --reporter lcov npm run test-api"},"prettier":{"bracketSpacing":false,"singleQuote":true,"semi":false,"tabWidth":2,"trailingComma":"none","useTabs":false},"remarkConfig":{"plugins":["remark-preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"ignoreCatch":true,"strict":true},"xo":{"overrides":[{"files":["test/**/*.js"],"rules":{"no-await-in-loop":"off"}}],"prettier":true},"_id":"remark-frontmatter@5.0.0","gitHead":"df7122f529563e35183f97e6643d9bf1725c60f2","types":"./index.d.ts","homepage":"https://github.com/remarkjs/remark-frontmatter#readme","_nodeVersion":"20.5.1","_npmVersion":"9.8.0","dist":{"shasum":"b68d61552a421ec412c76f4f66c344627dc187a2","size":7427,"noattachment":false,"key":"/remark-frontmatter/-/remark-frontmatter-5.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/remark-frontmatter/download/remark-frontmatter-5.0.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"johno","email":"johnotander@gmail.com"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-frontmatter_5.0.0_1695035558102_0.2377482477297721"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-09-18T11:12:38.246Z","publish_time":1695035558246,"_source_registry_name":"default","_cnpm_publish_time":1695035558246},"4.0.1":{"name":"remark-frontmatter","version":"4.0.1","description":"remark plugin to support frontmatter (yaml, toml, and more)","license":"MIT","keywords":["unified","remark","remark-plugin","plugin","mdast","markdown","frontmatter","yaml","toml"],"repository":{"type":"git","url":"git+https://github.com/remarkjs/remark-frontmatter.git"},"bugs":{"url":"https://github.com/remarkjs/remark-frontmatter/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},{"name":"Lars Trieloff","email":"lars@trieloff.net"},{"name":"Max Kueng","email":"me@maxkueng.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","dependencies":{"@types/mdast":"^3.0.0","mdast-util-frontmatter":"^1.0.0","micromark-extension-frontmatter":"^1.0.0","unified":"^10.0.0"},"devDependencies":{"@types/tape":"^4.0.0","c8":"^7.0.0","is-hidden":"^2.0.0","prettier":"^2.0.0","remark":"^14.0.0","remark-cli":"^10.0.0","remark-preset-wooorm":"^9.0.0","rimraf":"^3.0.0","tape":"^5.0.0","to-vfile":"^7.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","xo":"^0.45.0"},"scripts":{"build":"rimraf \"test/**/*.d.ts\" \"*.d.ts\" && tsc && type-coverage","format":"remark . -qfo --ignore-pattern test/ && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test/index.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"ignores":["types/"]},"remarkConfig":{"plugins":[["./index.js",["yaml","toml"]],"preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"bb147f9b6a67198a9579735a6e8b2dcd3103a61d","homepage":"https://github.com/remarkjs/remark-frontmatter#readme","_id":"remark-frontmatter@4.0.1","_nodeVersion":"17.0.1","_npmVersion":"8.1.0","dist":{"shasum":"84560f7ccef114ef076d3d3735be6d69f8922309","size":5697,"noattachment":false,"key":"/remark-frontmatter/-/remark-frontmatter-4.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/remark-frontmatter/download/remark-frontmatter-4.0.1.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"johno","email":"johnotander@gmail.com"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-frontmatter_4.0.1_1635232708978_0.9985882155430634"},"_hasShrinkwrap":false,"publish_time":1635232709090,"_cnpm_publish_time":1635232709090},"4.0.0":{"name":"remark-frontmatter","version":"4.0.0","description":"remark plugin to support frontmatter (yaml, toml, and more)","license":"MIT","keywords":["unified","remark","remark-plugin","plugin","mdast","markdown","frontmatter","yaml","toml"],"repository":{"type":"git","url":"git+https://github.com/remarkjs/remark-frontmatter.git"},"bugs":{"url":"https://github.com/remarkjs/remark-frontmatter/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},{"name":"Lars Trieloff","email":"lars@trieloff.net"},{"name":"Max Kueng","email":"me@maxkueng.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","dependencies":{"@types/mdast":"^3.0.0","mdast-util-frontmatter":"^1.0.0","micromark-extension-frontmatter":"^1.0.0","unified":"^10.0.0"},"devDependencies":{"@types/tape":"^4.0.0","c8":"^7.0.0","is-hidden":"^2.0.0","prettier":"^2.0.0","remark":"^14.0.0","remark-cli":"^10.0.0","remark-preset-wooorm":"^8.0.0","rimraf":"^3.0.0","tape":"^5.0.0","to-vfile":"^7.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","xo":"^0.43.0"},"scripts":{"build":"rimraf \"test/**/*.d.ts\" \"*.d.ts\" && tsc && type-coverage","format":"remark . -qfo --ignore-pattern test/ && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test/index.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov npm run test-api","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"ignores":["types/"]},"remarkConfig":{"plugins":[["./index.js",["yaml","toml"]],"preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"844e99d013b2586ba065e4077442c06ec49a5b0f","homepage":"https://github.com/remarkjs/remark-frontmatter#readme","_id":"remark-frontmatter@4.0.0","_nodeVersion":"16.6.1","_npmVersion":"7.20.3","dist":{"shasum":"3730cf165f49f77d2aebfe5df1eb03e80860fc25","size":3969,"noattachment":false,"key":"/remark-frontmatter/-/remark-frontmatter-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/remark-frontmatter/download/remark-frontmatter-4.0.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"johno","email":"johnotander@gmail.com"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-frontmatter_4.0.0_1628173510960_0.05672160375641955"},"_hasShrinkwrap":false,"publish_time":1628173511353,"_cnpm_publish_time":1628173511353},"3.0.0":{"name":"remark-frontmatter","version":"3.0.0","description":"remark plugin to support frontmatter (yaml, toml, and more)","license":"MIT","keywords":["unified","remark","remark-plugin","plugin","mdast","markdown","frontmatter","yaml","toml"],"repository":{"type":"git","url":"git+https://github.com/remarkjs/remark-frontmatter.git"},"bugs":{"url":"https://github.com/remarkjs/remark-frontmatter/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},{"name":"Lars Trieloff","email":"lars@trieloff.net"},{"name":"Max Kueng","email":"me@maxkueng.com"}],"types":"types/index.d.ts","dependencies":{"mdast-util-frontmatter":"^0.2.0","micromark-extension-frontmatter":"^0.2.0"},"devDependencies":{"browserify":"^16.0.0","dtslint":"^4.0.0","is-hidden":"^1.0.0","not":"^0.1.0","nyc":"^15.0.0","prettier":"^2.0.0","remark":"^13.0.0-alpha.1","remark-cli":"^8.0.0","remark-preset-wooorm":"^7.0.0","tape":"^5.0.0","tinyify":"^3.0.0","to-vfile":"^6.0.0","unified":"^9.0.0","xo":"^0.33.0"},"scripts":{"format":"remark . -qfo --ignore-pattern test/ && prettier . --write && xo --fix","build-bundle":"browserify . -s remarkFrontmatter > remark-frontmatter.js","build-mangle":"browserify . -s remarkFrontmatter -p tinyify > remark-frontmatter.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test/index.js","test-types":"dtslint types","test":"npm run format && npm run build && npm run test-coverage && npm run test-types"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"rules":{"unicorn/no-fn-reference-in-iterator":"off","unicorn/prefer-optional-catch-binding":"off","guard-for-in":"off"},"ignores":["types/","remark-frontmatter.js"]},"remarkConfig":{"plugins":[["./",["yaml","toml"]],"preset-wooorm"]},"gitHead":"278c54a58323149f01f388d17bd8d7f77dfcea72","homepage":"https://github.com/remarkjs/remark-frontmatter#readme","_id":"remark-frontmatter@3.0.0","_nodeVersion":"14.8.0","_npmVersion":"6.14.8","dist":{"shasum":"ca5d996361765c859bd944505f377d6b186a6ec6","size":4248,"noattachment":false,"key":"/remark-frontmatter/-/remark-frontmatter-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/remark-frontmatter/download/remark-frontmatter-3.0.0.tgz"},"maintainers":[{"name":"johno","email":"johnotander@gmail.com"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-frontmatter_3.0.0_1601796081996_0.04085394652828023"},"_hasShrinkwrap":false,"publish_time":1601796082146,"_cnpm_publish_time":1601796082146},"2.0.0":{"name":"remark-frontmatter","version":"2.0.0","description":"remark plugin to support frontmatter (yaml, toml, and more)","license":"MIT","keywords":["unified","remark","remark-plugin","plugin","mdast","markdown","frontmatter","yaml","toml"],"repository":{"type":"git","url":"git+https://github.com/remarkjs/remark-frontmatter.git"},"bugs":{"url":"https://github.com/remarkjs/remark-frontmatter/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},{"name":"Lars Trieloff","email":"lars@trieloff.net"},{"name":"Max Kueng","email":"me@maxkueng.com"}],"types":"types/index.d.ts","dependencies":{"fault":"^1.0.1"},"devDependencies":{"browserify":"^16.0.0","dtslint":"^3.4.1","is-hidden":"^1.0.0","not":"^0.1.0","nyc":"^15.0.0","prettier":"^2.0.0","remark":"^12.0.0","remark-cli":"^8.0.0","remark-preset-wooorm":"^7.0.0","tape":"^4.0.0","tinyify":"^2.0.0","to-vfile":"^6.0.0","unified":"^9.0.0","xo":"^0.28.0"},"scripts":{"format":"remark *.md -qfo && prettier --write . && xo --fix","build-bundle":"browserify . -s remarkFrontmatter > remark-frontmatter.js","build-mangle":"browserify . -s remarkFrontmatter -p tinyify > remark-frontmatter.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test/index.js","test-types":"dtslint types","test":"npm run format && npm run build && npm run test-coverage && npm run test-types"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"rules":{"guard-for-in":"off"},"ignores":["remark-frontmatter.js","**/*.ts"]},"remarkConfig":{"plugins":[["./",["yaml","toml"]],"preset-wooorm"]},"gitHead":"092a667fae5a4f38ce9aaeeac8295ba5d3681190","homepage":"https://github.com/remarkjs/remark-frontmatter#readme","_id":"remark-frontmatter@2.0.0","_nodeVersion":"13.10.1","_npmVersion":"6.14.4","dist":{"shasum":"c9b8539c27cd23b1672c7e0fcbd5795eeedb4dc1","size":5744,"noattachment":false,"key":"/remark-frontmatter/-/remark-frontmatter-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/remark-frontmatter/download/remark-frontmatter-2.0.0.tgz"},"maintainers":[{"name":"johno","email":"johnotander@gmail.com"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-frontmatter_2.0.0_1586151922795_0.05893042086136702"},"_hasShrinkwrap":false,"publish_time":1586151922902,"_cnpm_publish_time":1586151922902},"1.3.3":{"name":"remark-frontmatter","version":"1.3.3","description":"remark plugin to support frontmatter (yaml, toml, and more)","license":"MIT","keywords":["unified","remark","remark-plugin","plugin","mdast","markdown","frontmatter","yaml","toml"],"repository":{"type":"git","url":"git+https://github.com/remarkjs/remark-frontmatter.git"},"bugs":{"url":"https://github.com/remarkjs/remark-frontmatter/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},{"name":"Lars Trieloff","email":"lars@trieloff.net"},{"name":"Max Kueng","email":"me@maxkueng.com"}],"dependencies":{"fault":"^1.0.1","xtend":"^4.0.1"},"devDependencies":{"browserify":"^16.0.0","is-hidden":"^1.0.0","not":"^0.1.0","nyc":"^15.0.0","prettier":"^2.0.0","remark":"^11.0.0","remark-cli":"^7.0.0","remark-preset-wooorm":"^6.0.0","tape":"^4.0.0","tinyify":"^2.0.0","to-vfile":"^6.0.0","unified":"^8.0.0","xo":"^0.28.0"},"scripts":{"format":"remark *.md -qfo && prettier --write \"**/*.js\" && xo --fix","build-bundle":"browserify . -s remarkFrontmatter > remark-frontmatter.js","build-mangle":"browserify . -s remarkFrontmatter -p tinyify > remark-frontmatter.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test/index.js","test":"npm run format && npm run build && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"rules":{"guard-for-in":"off"},"ignores":["remark-frontmatter.js"]},"remarkConfig":{"plugins":[["./",["yaml","toml"]],"preset-wooorm"]},"gitHead":"9d0fcb99564b9812e5a9907223ef4f5503267a17","homepage":"https://github.com/remarkjs/remark-frontmatter#readme","_id":"remark-frontmatter@1.3.3","_nodeVersion":"13.10.1","_npmVersion":"6.14.3","dist":{"shasum":"67ec63c89da5a84bb793ecec166e11b4eb47af10","size":5347,"noattachment":false,"key":"/remark-frontmatter/-/remark-frontmatter-1.3.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/remark-frontmatter/download/remark-frontmatter-1.3.3.tgz"},"maintainers":[{"name":"johno","email":"johnotander@gmail.com"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-frontmatter_1.3.3_1584981536634_0.7946156083390628"},"_hasShrinkwrap":false,"publish_time":1584981536826,"_cnpm_publish_time":1584981536826},"1.3.2":{"name":"remark-frontmatter","version":"1.3.2","description":"remark plugin to support frontmatter (yaml, toml, and more)","license":"MIT","keywords":["unified","remark","plugin","mdast","markdown","frontmatter","yaml","toml"],"repository":{"type":"git","url":"git+https://github.com/remarkjs/remark-frontmatter.git"},"bugs":{"url":"https://github.com/remarkjs/remark-frontmatter/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},{"name":"Lars Trieloff","email":"lars@trieloff.net"},{"name":"Max Kueng","email":"me@maxkueng.com"}],"dependencies":{"fault":"^1.0.1","xtend":"^4.0.1"},"devDependencies":{"browserify":"^16.0.0","is-hidden":"^1.0.0","not":"^0.1.0","nyc":"^14.0.0","prettier":"^1.0.0","remark":"^10.0.0","remark-cli":"^6.0.0","remark-preset-wooorm":"^5.0.0","tape":"^4.0.0","tinyify":"^2.0.0","to-vfile":"^6.0.0","unified":"^7.0.0","xo":"^0.24.0"},"scripts":{"format":"remark *.md -qfo && prettier --write \"**/*.js\" && xo --fix","build-bundle":"browserify . -s remarkFrontmatter > remark-frontmatter.js","build-mangle":"browserify . -s remarkFrontmatter -p tinyify > remark-frontmatter.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test/index.js","test":"npm run format && npm run build && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"rules":{"guard-for-in":"off"},"ignores":["remark-frontmatter.js"]},"remarkConfig":{"plugins":[["./",["yaml","toml"]],"preset-wooorm"]},"gitHead":"2fb60a22f7c5a1ed1408d6917af72c23e244abce","homepage":"https://github.com/remarkjs/remark-frontmatter#readme","_id":"remark-frontmatter@1.3.2","_nodeVersion":"12.2.0","_npmVersion":"6.9.0","dist":{"shasum":"91d9684319cd1b96cc3d9d901f10a978f39c752d","size":5194,"noattachment":false,"key":"/remark-frontmatter/-/remark-frontmatter-1.3.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/remark-frontmatter/download/remark-frontmatter-1.3.2.tgz"},"maintainers":[{"name":"johno","email":"johnotander@gmail.com"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-frontmatter_1.3.2_1560673299422_0.920987262478633"},"_hasShrinkwrap":false,"publish_time":1560673299521,"_cnpm_publish_time":1560673299521},"1.3.1":{"name":"remark-frontmatter","version":"1.3.1","description":"Frontmatter (yaml, toml, and more) support for remark","license":"MIT","keywords":["frontmatter","yaml","toml","markdown","remark"],"repository":{"type":"git","url":"git+https://github.com/remarkjs/remark-frontmatter.git"},"bugs":{"url":"https://github.com/remarkjs/remark-frontmatter/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},{"name":"Max Kueng","email":"me@maxkueng.com"}],"dependencies":{"fault":"^1.0.1","xtend":"^4.0.1"},"devDependencies":{"browserify":"^16.0.0","is-hidden":"^1.1.0","not":"^0.1.0","nyc":"^13.0.0","prettier":"^1.14.2","remark":"^10.0.0","remark-cli":"^6.0.0","remark-preset-wooorm":"^4.0.0","tape":"^4.4.0","tinyify":"^2.4.3","to-vfile":"^5.0.0","unified":"^7.0.0","xo":"^0.23.0"},"scripts":{"format":"remark *.md -qfo && prettier --write \"**/*.js\" && xo --fix","build-bundle":"browserify . -s remarkFrontmatter > remark-frontmatter.js","build-mangle":"browserify . -s remarkFrontmatter -p tinyify > remark-frontmatter.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test/index.js","test":"npm run format && npm run build && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"rules":{"guard-for-in":"off"},"ignores":["remark-frontmatter.js"]},"remarkConfig":{"plugins":[["./",["yaml","toml"]],"preset-wooorm"]},"gitHead":"0d671b71ed33124184a92d5e98a76f68d4edc0eb","homepage":"https://github.com/remarkjs/remark-frontmatter#readme","_id":"remark-frontmatter@1.3.1","_npmVersion":"6.4.1","_nodeVersion":"11.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"bc28c0c913fa0b9dd26f17304bc47b856b2ea2de","size":5059,"noattachment":false,"key":"/remark-frontmatter/-/remark-frontmatter-1.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/remark-frontmatter/download/remark-frontmatter-1.3.1.tgz"},"maintainers":[{"name":"johno","email":"johnotander@gmail.com"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-frontmatter_1.3.1_1542881430898_0.7254335877364821"},"_hasShrinkwrap":false,"publish_time":1542881431027,"_cnpm_publish_time":1542881431027},"1.3.0":{"name":"remark-frontmatter","version":"1.3.0","description":"Frontmatter (yaml, toml, and more) support for remark","license":"MIT","keywords":["frontmatter","yaml","toml","markdown","remark"],"repository":{"type":"git","url":"git+https://github.com/remarkjs/remark-frontmatter.git"},"bugs":{"url":"https://github.com/remarkjs/remark-frontmatter/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},{"name":"Max Kueng","email":"me@maxkueng.com"}],"dependencies":{"fault":"^1.0.1","xtend":"^4.0.1"},"devDependencies":{"browserify":"^16.0.0","is-hidden":"^1.1.0","not":"^0.1.0","nyc":"^13.0.0","prettier":"^1.14.2","remark":"^9.0.0","remark-cli":"^5.0.0","remark-preset-wooorm":"^4.0.0","tape":"^4.4.0","tinyify":"^2.4.3","to-vfile":"^5.0.0","unified":"^7.0.0","xo":"^0.23.0"},"scripts":{"format":"remark *.md -qfo && prettier --write \"**/*.js\" && xo --fix","build-bundle":"browserify . -s remarkFrontmatter > remark-frontmatter.js","build-mangle":"browserify . -s remarkFrontmatter -p tinyify > remark-frontmatter.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test/index.js","test":"npm run format && npm run build && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"rules":{"guard-for-in":"off"},"ignores":["remark-frontmatter.js"]},"remarkConfig":{"plugins":[["./",["yaml","toml"]],"preset-wooorm"]},"gitHead":"cd614f566adb80f67eea286606bda65b1a9f195c","homepage":"https://github.com/remarkjs/remark-frontmatter#readme","_id":"remark-frontmatter@1.3.0","_npmVersion":"6.4.1","_nodeVersion":"10.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"daa33e88e2354197184878acbde528b1160b79b2","size":4943,"noattachment":false,"key":"/remark-frontmatter/-/remark-frontmatter-1.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/remark-frontmatter/download/remark-frontmatter-1.3.0.tgz"},"maintainers":[{"name":"johno","email":"johnotander@gmail.com"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-frontmatter_1.3.0_1537722506543_0.15565418503109174"},"_hasShrinkwrap":false,"publish_time":1537722506724,"_cnpm_publish_time":1537722506724},"1.2.1":{"name":"remark-frontmatter","version":"1.2.1","description":"Frontmatter (yaml, toml, and more) support for remark","license":"MIT","keywords":["frontmatter","yaml","toml","markdown","remark"],"repository":{"type":"git","url":"git+https://github.com/remarkjs/remark-frontmatter.git"},"bugs":{"url":"https://github.com/remarkjs/remark-frontmatter/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},{"name":"Max Kueng","email":"me@maxkueng.com"}],"files":["index.js","lib"],"dependencies":{"fault":"^1.0.1","xtend":"^4.0.1"},"devDependencies":{"browserify":"^16.0.0","is-hidden":"^1.1.0","not":"^0.1.0","nyc":"^12.0.0","prettier":"^1.14.2","remark":"^9.0.0","remark-cli":"^5.0.0","remark-preset-wooorm":"^4.0.0","tape":"^4.4.0","tinyify":"^2.4.3","to-vfile":"^5.0.0","unified":"^7.0.0","xo":"^0.22.0"},"scripts":{"format":"remark *.md -qfo && prettier --write \"**/*.js\" && xo --fix","build-bundle":"browserify . -s remarkFrontmatter > remark-frontmatter.js","build-mangle":"browserify . -s remarkFrontmatter -p tinyify > remark-frontmatter.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test/index.js","test":"npm run format && npm run build && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"rules":{"guard-for-in":"off"},"ignores":["remark-frontmatter.js"]},"remarkConfig":{"plugins":[["./",["yaml","toml"]],"preset-wooorm"]},"gitHead":"df849b73f7a1519a5ab384956535715f5a6e528d","homepage":"https://github.com/remarkjs/remark-frontmatter#readme","_id":"remark-frontmatter@1.2.1","_npmVersion":"6.3.0","_nodeVersion":"10.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"6427e8da41d8e78b1b955a0af46ca71350085f50","size":4837,"noattachment":false,"key":"/remark-frontmatter/-/remark-frontmatter-1.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/remark-frontmatter/download/remark-frontmatter-1.2.1.tgz"},"maintainers":[{"name":"johno","email":"johnotander@gmail.com"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-frontmatter_1.2.1_1533918855052_0.24977739305949176"},"_hasShrinkwrap":false,"publish_time":1533918855179,"_cnpm_publish_time":1533918855179},"1.2.0":{"name":"remark-frontmatter","version":"1.2.0","description":"Frontmatter (yaml, toml, and more) support for remark","license":"MIT","keywords":["frontmatter","yaml","toml","markdown","remark"],"repository":{"type":"git","url":"git+https://github.com/wooorm/remark-frontmatter.git"},"bugs":{"url":"https://github.com/wooorm/remark-frontmatter/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},{"name":"Max Kueng","email":"me@maxkueng.com"}],"files":["index.js","lib"],"dependencies":{"fault":"^1.0.1","xtend":"^4.0.1"},"devDependencies":{"browserify":"^14.0.0","esmangle":"^1.0.0","is-hidden":"^1.1.0","not":"^0.1.0","nyc":"^11.0.2","remark":"^8.0.0","remark-cli":"^4.0.0","remark-preset-wooorm":"^3.0.0","tape":"^4.4.0","to-vfile":"^2.1.2","unified":"^6.1.5","xo":"^0.18.0"},"scripts":{"build-md":"remark *.md -qfo","build-bundle":"browserify index.js -s remarkFrontmatter > remark-frontmatter.js","build-mangle":"esmangle remark-frontmatter.js > remark-frontmatter.min.js","build":"npm run build-md && npm run build-bundle && npm run build-mangle","lint":"xo","test-api":"node test","test-coverage":"nyc --reporter lcov tape test/index.js","test":"npm run build && npm run lint && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"xo":{"space":true,"esnext":false,"rules":{"guard-for-in":"off"},"ignores":["remark-frontmatter.js"]},"remarkConfig":{"plugins":[["./",["yaml","toml"]],"preset-wooorm"]},"gitHead":"8e7b516935c6e572fbc0e6a15d8edc8bcde7dab6","homepage":"https://github.com/wooorm/remark-frontmatter#readme","_id":"remark-frontmatter@1.2.0","_npmVersion":"5.5.1","_nodeVersion":"9.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"67905d178c0fe531ed12c57b98759f101fc2c1b5","size":4627,"noattachment":false,"key":"/remark-frontmatter/-/remark-frontmatter-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/remark-frontmatter/download/remark-frontmatter-1.2.0.tgz"},"maintainers":[{"name":"johno","email":"johnotander@gmail.com"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-frontmatter-1.2.0.tgz_1512383513331_0.7000773851759732"},"directories":{},"publish_time":1512383513394,"_hasShrinkwrap":false,"_cnpm_publish_time":1512383513394},"1.1.0":{"name":"remark-frontmatter","version":"1.1.0","description":"Frontmatter (yaml, toml, and more) support for remark","license":"MIT","keywords":["frontmatter","yaml","toml","markdown","remark"],"repository":{"type":"git","url":"git+https://github.com/wooorm/remark-frontmatter.git"},"bugs":{"url":"https://github.com/wooorm/remark-frontmatter/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"files":["index.js","lib"],"dependencies":{"fault":"^1.0.1","xtend":"^4.0.1"},"devDependencies":{"browserify":"^14.0.0","esmangle":"^1.0.0","is-hidden":"^1.1.0","not":"^0.1.0","nyc":"^11.0.2","remark":"^8.0.0","remark-cli":"^4.0.0","remark-preset-wooorm":"^3.0.0","tape":"^4.4.0","to-vfile":"^2.1.2","unified":"^6.1.5","xo":"^0.18.0"},"scripts":{"build-md":"remark *.md -qfo","build-bundle":"browserify index.js -s remarkFrontmatter > remark-frontmatter.js","build-mangle":"esmangle remark-frontmatter.js > remark-frontmatter.min.js","build":"npm run build-md && npm run build-bundle && npm run build-mangle","lint":"xo","test-api":"node test","test-coverage":"nyc --reporter lcov tape test/index.js","test":"npm run build && npm run lint && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"xo":{"space":true,"esnext":false,"rules":{"guard-for-in":"off"},"ignores":["remark-frontmatter.js"]},"remarkConfig":{"plugins":[["./",["yaml","toml"]],"preset-wooorm"]},"gitHead":"d3448bb597c9a56014316ce61629095f7fe7faf6","homepage":"https://github.com/wooorm/remark-frontmatter#readme","_id":"remark-frontmatter@1.1.0","_npmVersion":"5.0.0","_nodeVersion":"8.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"9d23c2b376f56617bdb5c5560f1b56e45b19788b","size":4219,"noattachment":false,"key":"/remark-frontmatter/-/remark-frontmatter-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/remark-frontmatter/download/remark-frontmatter-1.1.0.tgz"},"maintainers":[{"name":"johno","email":"johnotander@gmail.com"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-frontmatter-1.1.0.tgz_1501603638832_0.5137242411728948"},"directories":{},"publish_time":1501603639769,"_cnpm_publish_time":1501603639769,"_hasShrinkwrap":false},"1.0.0":{"name":"remark-frontmatter","version":"1.0.0","description":"Frontmatter (yaml, toml, and more) support for remark","license":"MIT","keywords":["frontmatter","yaml","toml","markdown","remark"],"repository":{"type":"git","url":"git+https://github.com/wooorm/remark-frontmatter.git"},"bugs":{"url":"https://github.com/wooorm/remark-frontmatter/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"http://wooorm.com"}],"files":["index.js","lib"],"dependencies":{"fault":"^1.0.1","xtend":"^4.0.1"},"devDependencies":{"browserify":"^14.0.0","esmangle":"^1.0.0","is-hidden":"^1.1.0","not":"^0.1.0","nyc":"^11.0.2","remark":"^8.0.0","remark-cli":"^4.0.0","remark-preset-wooorm":"^3.0.0","tape":"^4.4.0","to-vfile":"^2.1.2","unified":"^6.1.5","xo":"^0.18.0"},"scripts":{"build-md":"remark *.md -qfo","build-bundle":"browserify index.js -s remarkFrontmatter > remark-frontmatter.js","build-mangle":"esmangle remark-frontmatter.js > remark-frontmatter.min.js","build":"npm run build-md && npm run build-bundle && npm run build-mangle","lint":"xo","test-api":"node test","test-coverage":"nyc --reporter lcov tape test/index.js","test":"npm run build && npm run lint && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"xo":{"space":true,"esnext":false,"rules":{"guard-for-in":"off"},"ignores":["remark-frontmatter.js"]},"remarkConfig":{"plugins":[["./",["yaml","toml"]],"preset-wooorm"]},"gitHead":"3fc848b90bee2196fbdb68218381d42b18e04ce4","homepage":"https://github.com/wooorm/remark-frontmatter#readme","_id":"remark-frontmatter@1.0.0","_npmVersion":"5.0.0","_nodeVersion":"8.0.0","_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"dist":{"shasum":"66a0d4d4e347c35d65f5a6661a0db74a5196a9a6","size":4146,"noattachment":false,"key":"/remark-frontmatter/-/remark-frontmatter-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/remark-frontmatter/download/remark-frontmatter-1.0.0.tgz"},"maintainers":[{"name":"johno","email":"johnotander@gmail.com"},{"name":"remcohaszing","email":""},{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-frontmatter-1.0.0.tgz_1500582556144_0.8784402515739202"},"directories":{},"publish_time":1500582558523,"_hasShrinkwrap":false,"_cnpm_publish_time":1500582558523}},"readme":"# remark-frontmatter\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n[![Sponsors][sponsors-badge]][collective]\n[![Backers][backers-badge]][collective]\n[![Chat][chat-badge]][chat]\n\n**[remark][]** plugin to support frontmatter (YAML, TOML, and more).\n\n## Contents\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*   [API](#api)\n    *   [`unified().use(remarkFrontmatter[, options])`](#unifieduseremarkfrontmatter-options)\n    *   [`Options`](#options)\n*   [Examples](#examples)\n    *   [Example: different markers and fences](#example-different-markers-and-fences)\n    *   [Example: frontmatter as metadata](#example-frontmatter-as-metadata)\n    *   [Example: frontmatter in MDX](#example-frontmatter-in-mdx)\n*   [Authoring](#authoring)\n*   [HTML](#html)\n*   [CSS](#css)\n*   [Syntax](#syntax)\n*   [Syntax tree](#syntax-tree)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Security](#security)\n*   [Related](#related)\n*   [Contribute](#contribute)\n*   [License](#license)\n\n## What is this?\n\nThis package is a [unified][] ([remark][]) plugin to add support for YAML, TOML,\nand other frontmatter.\n\nFrontmatter is a metadata format in front of the content.\nIt’s typically written in YAML and is often used with markdown.\n\nThis plugin follow how GitHub handles frontmatter.\nGitHub only supports YAML frontmatter, but this plugin also supports different\nflavors (such as TOML).\n\n## When should I use this?\n\nYou can use frontmatter when you want authors, that have some markup\nexperience, to configure where or how the content is displayed or supply\nmetadata about content, and know that the markdown is only used in places\nthat support frontmatter.\nA good example use case is markdown being rendered by (static) site generators.\n\nIf you *just* want to turn markdown into HTML (with maybe a few extensions such\nas frontmatter), we recommend [`micromark`][micromark] with\n[`micromark-extension-frontmatter`][micromark-extension-frontmatter] instead.\nIf you don’t use plugins and want to access the syntax tree, you can use\n[`mdast-util-from-markdown`][mdast-util-from-markdown] with\n[`mdast-util-frontmatter`][mdast-util-frontmatter].\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 16+), install with [npm][]:\n\n```sh\nnpm install remark-frontmatter\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport remarkFrontmatter from 'https://esm.sh/remark-frontmatter@5'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n<script type=\"module\">\n  import remarkFrontmatter from 'https://esm.sh/remark-frontmatter@5?bundle'\n</script>\n```\n\n## Use\n\nSay our document `example.md` contains:\n\n```markdown\n+++\nlayout = \"solar-system\"\n+++\n\n# Jupiter\n```\n\n…and our module `example.js` contains:\n\n```js\nimport remarkFrontmatter from 'remark-frontmatter'\nimport remarkParse from 'remark-parse'\nimport remarkStringify from 'remark-stringify'\nimport {unified} from 'unified'\nimport {read} from 'to-vfile'\n\nconst file = await unified()\n  .use(remarkParse)\n  .use(remarkStringify)\n  .use(remarkFrontmatter, ['yaml', 'toml'])\n  .use(function () {\n    return function (tree) {\n      console.dir(tree)\n    }\n  })\n  .process(await read('example.md'))\n\nconsole.log(String(file))\n```\n\n…then running `node example.js` yields:\n\n```js\n{\n  type: 'root',\n  children: [\n    {type: 'toml', value: 'layout = \"solar-system\"', position: [Object]},\n    {type: 'heading', depth: 1, children: [Array], position: [Object]}\n  ],\n  position: {\n    start: {line: 1, column: 1, offset: 0},\n    end: {line: 6, column: 1, offset: 43}\n  }\n}\n```\n\n```markdown\n+++\nlayout = \"solar-system\"\n+++\n\n# Jupiter\n```\n\n## API\n\nThis package exports no identifiers.\nThe default export is [`remarkFrontmatter`][api-remark-frontmatter].\n\n### `unified().use(remarkFrontmatter[, options])`\n\nAdd support for frontmatter.\n\n###### Parameters\n\n*   `options` ([`Options`][api-options], default: `'yaml'`)\n    — configuration\n\n###### Returns\n\nNothing (`undefined`).\n\n###### Notes\n\nDoesn’t parse the data inside them:\n[create your own plugin][unified-create-plugin] to do that.\n\n### `Options`\n\nConfiguration (TypeScript type).\n\n###### Type\n\n```ts\ntype Options = Array<Matter | Preset> | Matter | Preset\n\n/**\n * Sequence.\n *\n * Depending on how this structure is used, it reflects a marker or a fence.\n */\nexport type Info = {\n  /**\n   * Closing.\n   */\n  close: string\n  /**\n   * Opening.\n   */\n  open: string\n}\n\n/**\n * Fence configuration.\n */\ntype FenceProps = {\n  /**\n   * Complete fences.\n   *\n   * This can be used when fences contain different characters or lengths\n   * other than 3.\n   * Pass `open` and `close` to interface to specify different characters for opening and\n   * closing fences.\n   */\n  fence: Info | string\n  /**\n   * If `fence` is set, `marker` must not be set.\n   */\n  marker?: never\n}\n\n/**\n * Marker configuration.\n */\ntype MarkerProps = {\n  /**\n   * Character repeated 3 times, used as complete fences.\n   *\n   * For example the character `'-'` will result in `'---'` being used as the\n   * fence\n   * Pass `open` and `close` to specify different characters for opening and\n   * closing fences.\n   */\n  marker: Info | string\n  /**\n   * If `marker` is set, `fence` must not be set.\n   */\n  fence?: never\n}\n\n/**\n * Fields describing a kind of matter.\n *\n * > ???? **Note**: using `anywhere` is a terrible idea.\n * > It’s called frontmatter, not matter-in-the-middle or so.\n * > This makes your markdown less portable.\n *\n * > ???? **Note**: `marker` and `fence` are mutually exclusive.\n * > If `marker` is set, `fence` must not be set, and vice versa.\n */\ntype Matter = (MatterProps & FenceProps) | (MatterProps & MarkerProps)\n\n/**\n * Fields describing a kind of matter.\n */\ntype MatterProps = {\n  /**\n   * Node type to tokenize as.\n   */\n  type: string\n  /**\n   * Whether matter can be found anywhere in the document, normally, only matter\n   * at the start of the document is recognized.\n   *\n   * > ???? **Note**: using this is a terrible idea.\n   * > It’s called frontmatter, not matter-in-the-middle or so.\n   * > This makes your markdown less portable.\n   */\n  anywhere?: boolean | null | undefined\n}\n\n/**\n * Known name of a frontmatter style.\n */\ntype Preset = 'toml' | 'yaml'\n```\n\n## Examples\n\n### Example: different markers and fences\n\nHere are a couple of example of different matter objects and what frontmatter\nthey match.\n\nTo match frontmatter with the same opening and closing fence, namely three of\nthe same markers, use for example `{type: 'yaml', marker: '-'}`, which matches:\n\n```yaml\n---\nkey: value\n---\n```\n\nTo match frontmatter with different opening and closing fences, which each use\nthree different markers, use for example\n`{type: 'custom', marker: {open: '<', close: '>'}}`, which matches:\n\n```text\n<<<\ndata\n>>>\n```\n\nTo match frontmatter with the same opening and closing fences, which both use\nthe same custom string, use for example `{type: 'custom', fence: '+=+=+=+'}`,\nwhich matches:\n\n```text\n+=+=+=+\ndata\n+=+=+=+\n```\n\nTo match frontmatter with different opening and closing fences, which each use\ndifferent custom strings, use for example\n`{type: 'json', fence: {open: '{', close: '}'}}`, which matches:\n\n```json\n{\n  \"key\": \"value\"\n}\n```\n\n### Example: frontmatter as metadata\n\nThis plugin handles the syntax of frontmatter in markdown.\nIt does not *parse* that frontmatter as say YAML or TOML and expose it\nsomewhere.\n\nIn unified, there is a place for metadata about files:\n[`file.data`][vfile-file-data].\nFor frontmatter specifically, it’s customary to expose parsed data at `file.data.matter`.\n\nWe can make a plugin that does this.\nThis example uses the utility [`vfile-matter`][vfile-matter], which is specific\nto YAML.\nTo support other data languages, look at this utility for inspiration.\n\n`my-unified-plugin-handling-yaml-matter.js`:\n\n```js\n/**\n * @typedef {import('unist').Node} Node\n * @typedef {import('vfile').VFile} VFile\n */\n\nimport {matter} from 'vfile-matter'\n\n/**\n * Parse YAML frontmatter and expose it at `file.data.matter`.\n *\n * @returns\n *   Transform.\n */\nexport default function myUnifiedPluginHandlingYamlMatter() {\n  /**\n   * Transform.\n   *\n   * @param {Node} tree\n   *   Tree.\n   * @param {VFile} file\n   *   File.\n   * @returns {undefined}\n   *   Nothing.\n   */\n  return function (tree, file) {\n    matter(file)\n  }\n}\n```\n\n…with an example markdown file `example.md`:\n\n```markdown\n---\nkey: value\n---\n\n# Venus\n```\n\n…and using the plugin with an `example.js` containing:\n\n```js\nimport remarkParse from 'remark-parse'\nimport remarkFrontmatter from 'remark-frontmatter'\nimport remarkStringify from 'remark-stringify'\nimport {read} from 'to-vfile'\nimport {unified} from 'unified'\nimport myUnifiedPluginHandlingYamlMatter from './my-unified-plugin-handling-yaml-matter.js'\n\nconst file = await unified()\n  .use(remarkParse)\n  .use(remarkStringify)\n  .use(remarkFrontmatter)\n  .use(myUnifiedPluginHandlingYamlMatter)\n  .process(await read('example.md'))\n\nconsole.log(file.data.matter) // => {key: 'value'}\n```\n\n### Example: frontmatter in MDX\n\nMDX has the ability to export data from it, where markdown does not.\nWhen authoring MDX, you can write `export` statements and expose arbitrary data\nthrough them.\nIt is also possible to write frontmatter, and let a plugin turn those into\nexport statements.\n\nTo automatically turn frontmatter into export statements, use\n[`remark-mdx-frontmatter`][remark-mdx-frontmatter].\n\nWith an `example.mdx` as follows:\n\n```mdx\n---\nkey: value\n---\n\n# Mars\n```\n\nThis plugin can be used as follows:\n\n```js\nimport {compile} from '@mdx-js/mdx'\nimport remarkFrontmatter from 'remark-frontmatter'\nimport remarkMdxFrontmatter from 'remark-mdx-frontmatter'\nimport {read, write} from 'to-vfile'\n\nconst file = await compile(await read('example.mdx'), {\n  remarkPlugins: [remarkFrontmatter, [remarkMdxFrontmatter, {name: 'matter'}]]\n})\nfile.path = 'output.js'\nawait write(file)\n\nconst mod = await import('./output.js')\nconsole.log(mod.matter) // => {key: 'value'}\n```\n\n## Authoring\n\nWhen authoring markdown with frontmatter, it’s recommended to use YAML\nfrontmatter if possible.\nWhile YAML has some warts, it works in the most places, so using it guarantees\nthe highest chance of portability.\n\nIn certain ecosystems, other flavors are widely used.\nFor example, in the Rust ecosystem, TOML is often used.\nIn such cases, using TOML is an okay choice.\n\nWhen possible, do not use other types of frontmatter, and do not allow\nfrontmatter anywhere.\n\n## HTML\n\nFrontmatter does not relate to HTML elements.\nIt is typically stripped, which is what [`remark-rehype`][remark-rehype] does.\n\n## CSS\n\nThis package does not relate to CSS.\n\n## Syntax\n\nSee [*Syntax* in\n`micromark-extension-frontmatter`](https://github.com/micromark/micromark-extension-frontmatter#syntax).\n\n## Syntax tree\n\nSee [*Syntax tree* in\n`mdast-util-frontmatter`](https://github.com/syntax-tree/mdast-util-frontmatter#syntax-tree).\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports the additional type [`Options`][api-options].\n\nThe YAML node type is supported in `@types/mdast` by default.\nTo add other node types, register them by adding them to\n`FrontmatterContentMap`:\n\n```ts\nimport type {Data, Literal} from 'mdast'\n\ninterface Toml extends Literal {\n  type: 'toml'\n  data?: TomlData\n}\n\ndeclare module 'mdast' {\n  interface FrontmatterContentMap {\n    // Allow using TOML nodes defined by `remark-frontmatter`.\n    toml: Toml\n  }\n}\n```\n\n## Compatibility\n\nProjects maintained by the unified collective are compatible with maintained\nversions of Node.js.\n\nWhen we cut a new major release, we drop support for unmaintained versions of\nNode.\nThis means we try to keep the current release line, `remark-frontmatter@^5`,\ncompatible with Node.js 16.\n\nThis plugin works with unified 6+ and remark 13+.\n\n## Security\n\nUse of `remark-frontmatter` does not involve **[rehype][]** ([hast][]) or user\ncontent so there are no openings for [cross-site scripting (XSS)][wiki-xss]\nattacks.\n\n## Related\n\n*   [`remark-yaml-config`](https://github.com/remarkjs/remark-yaml-config)\n    — configure remark from YAML configuration\n*   [`remark-gfm`](https://github.com/remarkjs/remark-gfm)\n    — support GFM (autolink literals, footnotes, strikethrough, tables,\n    tasklists)\n*   [`remark-mdx`](https://github.com/mdx-js/mdx/tree/main/packages/remark-mdx)\n    — support MDX (ESM, JSX, expressions)\n*   [`remark-directive`](https://github.com/remarkjs/remark-directive)\n    — support directives\n*   [`remark-math`](https://github.com/remarkjs/remark-math)\n    — support math\n\n## Contribute\n\nSee [`contributing.md`][contributing] in [`remarkjs/.github`][health] for ways\nto get started.\nSee [`support.md`][support] for ways to get help.\n\nThis project has a [code of conduct][coc].\nBy interacting with this repository, organization, or community you agree to\nabide by its terms.\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n<!-- Definitions -->\n\n[build-badge]: https://github.com/remarkjs/remark-frontmatter/workflows/main/badge.svg\n\n[build]: https://github.com/remarkjs/remark-frontmatter/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/remarkjs/remark-frontmatter.svg\n\n[coverage]: https://codecov.io/github/remarkjs/remark-frontmatter\n\n[downloads-badge]: https://img.shields.io/npm/dm/remark-frontmatter.svg\n\n[downloads]: https://www.npmjs.com/package/remark-frontmatter\n\n[size-badge]: https://img.shields.io/bundlejs/size/remark-frontmatter\n\n[size]: https://bundlejs.com/?q=remark-frontmatter\n\n[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg\n\n[backers-badge]: https://opencollective.com/unified/backers/badge.svg\n\n[collective]: https://opencollective.com/unified\n\n[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg\n\n[chat]: https://github.com/remarkjs/remark/discussions\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[esmsh]: https://esm.sh\n\n[health]: https://github.com/remarkjs/.github\n\n[contributing]: https://github.com/remarkjs/.github/blob/main/contributing.md\n\n[support]: https://github.com/remarkjs/.github/blob/main/support.md\n\n[coc]: https://github.com/remarkjs/.github/blob/main/code-of-conduct.md\n\n[license]: license\n\n[author]: https://wooorm.com\n\n[mdast-util-from-markdown]: https://github.com/syntax-tree/mdast-util-from-markdown\n\n[mdast-util-frontmatter]: https://github.com/syntax-tree/mdast-util-frontmatter\n\n[micromark]: https://github.com/micromark/micromark\n\n[micromark-extension-frontmatter]: https://github.com/micromark/micromark-extension-frontmatter\n\n[hast]: https://github.com/syntax-tree/hast\n\n[rehype]: https://github.com/rehypejs/rehype\n\n[remark]: https://github.com/remarkjs/remark\n\n[remark-rehype]: https://github.com/remarkjs/remark-rehype\n\n[remark-mdx-frontmatter]: https://github.com/remcohaszing/remark-mdx-frontmatter\n\n[typescript]: https://www.typescriptlang.org\n\n[unified]: https://github.com/unifiedjs/unified\n\n[unified-create-plugin]: https://unifiedjs.com/learn/guide/create-a-plugin/\n\n[vfile-file-data]: https://github.com/vfile/vfile#filedata\n\n[vfile-matter]: https://github.com/vfile/vfile-matter\n\n[wiki-xss]: https://en.wikipedia.org/wiki/Cross-site_scripting\n\n[api-options]: #options\n\n[api-remark-frontmatter]: #unifieduseremarkfrontmatter-options\n","_attachments":{},"homepage":"https://github.com/remarkjs/remark-frontmatter#readme","bugs":{"url":"https://github.com/remarkjs/remark-frontmatter/issues"},"license":"MIT"}