{"_id":"remark-parse-yaml","_rev":"2831849","name":"remark-parse-yaml","description":"Parses yaml blocks into structured data","dist-tags":{"latest":"0.0.3"},"maintainers":[{"name":"landakram","email":"mark@getclef.com"}],"time":{"modified":"2022-09-06T15:13:58.000Z","created":"2017-12-24T19:21:15.343Z","0.0.3":"2019-07-28T18:41:24.837Z","0.0.2":"2018-12-27T19:05:30.989Z","0.0.1":"2017-12-24T19:21:15.343Z"},"users":{},"author":{"name":"Mark Hudnall","email":"me@markhudnall.com","url":"https://markhudnall.com"},"repository":{"type":"git","url":"git+https://github.com/landakram/remark-parse-yaml.git"},"versions":{"0.0.3":{"name":"remark-parse-yaml","description":"Parses yaml blocks into structured data","version":"0.0.3","keywords":["remark","remark-plugin","markdown","gfm"],"repository":{"type":"git","url":"git+https://github.com/landakram/remark-parse-yaml.git"},"license":"MIT","author":{"name":"Mark Hudnall","email":"me@markhudnall.com","url":"https://markhudnall.com"},"scripts":{"test":"npm run babel && mocha --compilers js:babel-core/register test/index_test.js","babel":"babel src --out-dir lib","prepublish":"npm run babel"},"main":"lib/index.js","dependencies":{"js-yaml":"^3.13.1","unist-util-map":"^1.0.3"},"devDependencies":{"babel-cli":"^6.24.1","babel-core":"^6.25.0","babel-preset-env":"^1.6.0","mocha":"^5.2.0","rehype-stringify":"^3.0.0","remark-parse":"^3.0.1","remark-rehype":"^2.0.1","remark-stringify":"^3.0.1","unified":"^6.1.5","unist-util-visit":"^1.1.3"},"gitHead":"6a857ba1e0307f9c3fe965d90d677f46503c90c9","bugs":{"url":"https://github.com/landakram/remark-parse-yaml/issues"},"homepage":"https://github.com/landakram/remark-parse-yaml#readme","_id":"remark-parse-yaml@0.0.3","_nodeVersion":"12.6.0","_npmVersion":"6.9.0","_npmUser":{"name":"landakram","email":"mark@getclef.com"},"dist":{"shasum":"f039686829c85f73b9b97e92f042d1c0416f3620","size":2263,"noattachment":false,"key":"/remark-parse-yaml/-/remark-parse-yaml-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/remark-parse-yaml/download/remark-parse-yaml-0.0.3.tgz"},"maintainers":[{"name":"landakram","email":"mark@getclef.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-parse-yaml_0.0.3_1564339284696_0.3626212169460603"},"_hasShrinkwrap":false,"publish_time":1564339284837,"_cnpm_publish_time":1564339284837,"_cnpmcore_publish_time":"2021-12-16T16:25:32.276Z"},"0.0.2":{"name":"remark-parse-yaml","description":"Parses yaml blocks into structured data","version":"0.0.2","keywords":["remark","remark-plugin","markdown","gfm"],"repository":{"type":"git","url":"git+https://github.com/landakram/remark-parse-yaml.git"},"license":"MIT","author":{"name":"Mark Hudnall","email":"me@markhudnall.com","url":"https://markhudnall.com"},"scripts":{"test":"npm run babel && mocha --compilers js:babel-core/register test/index_test.js","babel":"babel src --out-dir lib","prepublish":"npm run babel"},"main":"lib/index.js","dependencies":{"js-yaml":"^3.9.0","unist-util-map":"^1.0.3"},"devDependencies":{"babel-cli":"^6.24.1","babel-core":"^6.25.0","babel-preset-env":"^1.6.0","mocha":"^5.2.0","rehype-stringify":"^3.0.0","remark-parse":"^3.0.1","remark-rehype":"^2.0.1","remark-stringify":"^3.0.1","unified":"^6.1.5","unist-util-visit":"^1.1.3"},"gitHead":"97ca38f5bceb576e03f9ae33a8ad171ef92e4175","bugs":{"url":"https://github.com/landakram/remark-parse-yaml/issues"},"homepage":"https://github.com/landakram/remark-parse-yaml#readme","_id":"remark-parse-yaml@0.0.2","_npmVersion":"6.5.0","_nodeVersion":"11.6.0","_npmUser":{"name":"landakram","email":"mark@getclef.com"},"dist":{"shasum":"c5fcc00a902f23e453dda7f8a372664989187a8f","size":2266,"noattachment":false,"key":"/remark-parse-yaml/-/remark-parse-yaml-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/remark-parse-yaml/download/remark-parse-yaml-0.0.2.tgz"},"maintainers":[{"name":"landakram","email":"mark@getclef.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-parse-yaml_0.0.2_1545937530831_0.5056969237748445"},"_hasShrinkwrap":false,"publish_time":1545937530989,"_cnpm_publish_time":1545937530989,"_cnpmcore_publish_time":"2021-12-16T16:25:32.482Z"},"0.0.1":{"name":"remark-parse-yaml","description":"Parses yaml blocks into structured data","version":"0.0.1","keywords":["remark","remark-plugin","markdown","gfm"],"repository":{"type":"git","url":"git+https://github.com/landakram/remark-parse-yaml.git"},"license":"MIT","author":{"name":"Mark Hudnall","email":"me@markhudnall.com","url":"https://markhudnall.com"},"scripts":{"test":"npm run babel && mocha --compilers js:babel-core/register test/index_test.js","babel":"babel src --out-dir lib","prepublish":"npm run babel"},"main":"lib/index.js","dependencies":{"babel-polyfill":"^6.23.0","js-yaml":"^3.9.0","unist-util-map":"^1.0.3"},"devDependencies":{"babel-cli":"^6.24.1","babel-core":"^6.25.0","babel-preset-env":"^1.6.0","mocha":"^3.4.2","rehype-stringify":"^3.0.0","remark-parse":"^3.0.1","remark-rehype":"^2.0.1","remark-stringify":"^3.0.1","unified":"^6.1.5","unist-util-visit":"^1.1.3"},"gitHead":"fe64b68b950588348b12349ee0d135b322323dc6","bugs":{"url":"https://github.com/landakram/remark-parse-yaml/issues"},"homepage":"https://github.com/landakram/remark-parse-yaml#readme","_id":"remark-parse-yaml@0.0.1","_shasum":"816ec7587ac9e01715f4d6a02926e0367462a1c5","_from":".","_npmVersion":"3.10.8","_nodeVersion":"7.0.0","_npmUser":{"name":"landakram","email":"mark@getclef.com"},"dist":{"shasum":"816ec7587ac9e01715f4d6a02926e0367462a1c5","size":2370,"noattachment":false,"key":"/remark-parse-yaml/-/remark-parse-yaml-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/remark-parse-yaml/download/remark-parse-yaml-0.0.1.tgz"},"maintainers":[{"name":"landakram","email":"mark@getclef.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-parse-yaml-0.0.1.tgz_1514143275248_0.5157807457726449"},"directories":{},"publish_time":1514143275343,"_hasShrinkwrap":false,"_cnpm_publish_time":1514143275343,"_cnpmcore_publish_time":"2021-12-16T16:25:32.697Z"}},"readme":"# remark-parse-yaml\n[![npm version](https://badge.fury.io/js/remark-parse-yaml.svg)](https://badge.fury.io/js/remark-parse-yaml) [![Build Status](https://travis-ci.org/landakram/remark-parse-yaml.svg?branch=master)](https://travis-ci.org/landakram/remark-parse-yaml)\n\nThis [remark](https://github.com/wooorm/remark) plugin takes markdown with yaml frontmatter and parses the yaml into an object.\n\n## Usage\n\n```javascript\nconst unified = require('unified')\nconst markdown = require('remark-parse')\nconst frontmatter = require('remark-frontmatter')\nconst parseFrontmatter = require('remark-parse-yaml');\n\nlet processor = unified()\n    .use(markdown)\n    .use(frontmatter)\n    .use(parseFrontmatter)\n```\n\nWhen the processor is run, `yaml` nodes will now have an additional key, `parsedValue`, \nattached to its `data` key.\n\nSay that we have this markdown string:\n\n``` markdown\n---\nmetadata: this is metadata\ntags:\n    - one\n    - two\n---\n\n# Heading \n```\n\nWhen parsed, this will produce a `yaml` node with a `data` object that looks like this:\n\n```javascript\ndata: {\n    parsedValue: {\n        metadata: \"this is metadata\",\n        tags: [\"one\", \"two\"]\n    }\n}\n```\n","_attachments":{},"homepage":"https://github.com/landakram/remark-parse-yaml#readme","bugs":{"url":"https://github.com/landakram/remark-parse-yaml/issues"},"license":"MIT"}