{"name":"hexo-front-matter","version":"1.0.0","keywords":["front-matter","front matter","yaml","yml","hexo","json"],"author":{"url":"http://zespia.tw","name":"Tommy Chen","email":"tommy351@gmail.com"},"license":"MIT","_id":"hexo-front-matter@1.0.0","maintainers":[{"name":"abnerchou","email":"hi@abnerchou.me"},{"name":"curben","email":"bushedge@protonmail.com"},{"name":"ertrzyiks","email":"mateusz.derks@gmail.com"},{"name":"hexobot","email":"hexojs@gmail.com"},{"name":"jlhwung","email":"i@jhuang.me"},{"name":"tomap","email":"piartt@gmail.com"},{"name":"tommy351","email":"tommy351@gmail.com"},{"name":"yoshinorin","email":"nayo-msoft@outlook.jp"}],"homepage":"https://github.com/hexojs/hexo-front-matter#readme","bugs":{"url":"https://github.com/hexojs/hexo-front-matter/issues"},"dist":{"shasum":"0b48b1c1ed143e8cb25b3b223a9037385d910655","tarball":"http://registry-npm.ywwl.com/hexo-front-matter/download/hexo-front-matter-1.0.0.tgz","fileCount":3,"integrity":"sha512-Hn8IIzgWWnxYTekrjnA0rxwWMoQHifyrxKMqVibmFaRKf4AQ2V6Xo13Jiso6CDwYfS+OdA41QS5DG1Y+QXA5gw==","signatures":[{"sig":"MEUCIQCxi91khftCK/WgywPuH4O7X6RPerS4Sg6R/D9aJb728QIgTdaAScthNpLmfb2XKFTjRMj7hCXeFN1mM/c0/OsxB5g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6357,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdaN0qCRA9TVsSAnZWagAA7VIP/iKi0UoBlQTs9XD9BMcZ\nrz2UHuc00WDXJgx01Tzp0Apz0Ovln6bJYqKaJwwHEBtEJGcqOnV4ch2IpIbb\n9QY55SbnV2M+qZgg7PU7GmDlJiG1xe77pQd55hvXu47JbaUBV7+2mqYmcezQ\n29iSX+7rrE0dkdmWl0cl6wKATCq7bThF3Qx8hLwI7h7PVFD251g1giFVDaUQ\nQO9glVR1642x06AHpVkV+C86LxS6hgNtCYbCnLS1P3j8DlYTJsGVxDzjRnwc\nB6n9clKYLOVcXRMarvfIQwmUbJq61YRbNNsBCeHG//vwftCi69d1Z2ngCOS/\nEqWDt/FxHx94k3IB15CwcsiWIBOJnkHVwsjZ32qEuW7S09LRzJaxn1GTFqP/\nJ7t41QYZDS/RoIyp7EsdnjEaS4s/n46B6fVrRlu6c/TeokHvcLt/o/Y4Byk0\ncehN/Fo30VzUBsFeQbGuSZP1rxkIwlPGgszMe+gaWD1sxGYIazSSe6+JNQu6\nmnoc6aC9DdkbkLr1G8sdNIDMgomMIIyVp1Q5TA84NxE0EL/cMIEiHLevIZl+\nMXBT/7jUvcUTQhZU820GQANaGx2qTkp/n2oejp47p+lNTOv7cdHJkZB1w18/\neR5RPqlzbHkyqpq967li5aeKVGq67fpC1razrn3TGI+HKo5zOKal3ElNl5Yl\np580\r\n=VJNK\r\n-----END PGP SIGNATURE-----\r\n","size":2367,"noattachment":false,"key":"/hexo-front-matter/-/hexo-front-matter-1.0.0.tgz"},"main":"lib/front_matter","engines":{"node":">=8.6.0"},"gitHead":"2c441bcbf8ccb91e89066f2cec550f011f66cab0","scripts":{"test":"mocha test/index.js","eslint":"eslint .","test-cov":"nyc npm run test"},"_npmUser":{"name":"curben","email":"bushedge@protonmail.com"},"repository":{"url":"git+https://github.com/hexojs/hexo-front-matter.git","type":"git"},"_npmVersion":"6.10.2","description":"Front-matter parser.","directories":{"lib":"./lib"},"_nodeVersion":"12.9.1","dependencies":{"js-yaml":"^3.13.1"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^14.1.1","chai":"^4.2.0","mocha":"^6.1.4","eslint":"^6.0.1","moment":"^2.24.0","eslint-config-hexo":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/hexo-front-matter_1.0.0_1567153450401_0.5611051127143571","host":"s3://npm-registry-packages"},"readme":"# hexo-front-matter\n\n[![CI](https://github.com/hexojs/hexo-front-matter/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/hexojs/hexo-front-matter/actions/workflows/ci.yml)\n[![NPM version](https://badge.fury.io/js/hexo-front-matter.svg)](https://www.npmjs.com/package/hexo-front-matter)\n[![Coverage Status](https://coveralls.io/repos/github/hexojs/hexo-front-matter/badge.svg)](https://coveralls.io/github/hexojs/hexo-front-matter)\n\nFront-matter parser.\n\n## What is Front-matter?\n\nFront-matter allows you to specify data at the top of a file. Here are two formats:\n\n**YAML front-matter**\n\n```\n---\nlayout: false\ntitle: \"Hello world\"\n---\nLorem ipsum dolor sit amet, consectetur adipiscing elit.\n```\n\n**JSON front-matter**\n\n```\n;;;\n\"layout\": false,\n\"title\": \"Hello world\"\n;;;\nLorem ipsum dolor sit amet, consectetur adipiscing elit.\n```\n\nPrefixing separators are optional.\n\n## API\n\n### parse(str, [options])\n\nParses front-matter.\n\n### stringify(obj, [options])\n\nConverts an object to a front-matter string.\n\nOption | Description | Default\n--- | --- | ---\n`mode` | The mode can be either `json` or `yaml`. | `yaml`\n`separator` | Separator | `---`\n`prefixSeparator` | Add prefixing separator. | `false`\n\n### split(str)\n\nSplits a YAML front-matter string.\n\n### escape(str)\n\nConverts hard tabs to soft tabs.\n\n## License\n\nMIT","publish_time":1567153450500,"_cnpm_publish_time":1567153450500,"dist-tags":{"latest":"5.0.0"}}