{"name":"hexo-front-matter","version":"4.1.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@4.1.0","maintainers":[{"name":"ertrzyiks","email":"mateusz.derks@gmail.com"},{"name":"abnerchou","email":"hi@abnerchou.me"},{"name":"tommy351","email":"tommy351@gmail.com"},{"name":"hexobot","email":"hexojs@gmail.com"},{"name":"jlhwung","email":"i@jhuang.me"},{"name":"tomap","email":"piartt@gmail.com"},{"name":"curben","email":"bushedge@protonmail.com"},{"name":"yoshinorin","email":"yoshinorin.net@outlook.com"}],"homepage":"https://github.com/hexojs/hexo-front-matter#readme","bugs":{"url":"https://github.com/hexojs/hexo-front-matter/issues"},"dist":{"shasum":"cb0774757f975fcf0e7070e801de81258b049d78","tarball":"http://registry-npm.ywwl.com/hexo-front-matter/download/hexo-front-matter-4.1.0.tgz","fileCount":5,"integrity":"sha512-8rac/v1WzD2qkIz3YmUuiV/2WhvzWaZbNA25yY8YsCD7PlR1XDND8jUDlvcCl01sVkZtzwnQT8JuWU4I2oM9jA==","signatures":[{"sig":"MEQCIAgqHDk9qxoKDJwZ8D3rNYtOdSdh+50pjRrW5I45VwqgAiBF05w0QthCtYJodUbUdHwp8l1zU6wWDRKfJn5V4FVRjA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13265,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQUImACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrdjBAAlw2KvmDR81++kuXh0DL2i9eNZI4ZM3vklNTMo+NCkRpxilM0\r\nvEET0oBhaISu0OSPCQX+yFyk+6nqtovJcLzJvUxgtJocG28i3naF2Pmqf235\r\nhFp7HkFtAM9fH7egXxVEvZFZpsbcnH359ineTfnuUO5f+s5SWRlTwmxD08X3\r\nE1Zontdb8fPsLOFXOArYulbnwAI9wSDAvhZmeh7x++Wd8639xSWX575h4p/A\r\ngYh5Qam6cPegK55pjx5gUrUT2t1Ss8633tctiiF0gWwSVVtenjqSZlRrYgwW\r\nv08yHBOkfkXGBdI2o+DHuYAawQjHw07a1zgZxGAK4hpSRqLfa0zs0pH0DgsK\r\nUZ8cJAmqPsK91IOvO9adtQunYtgxSk8+0fJxqVy0ya9Scb8FPaZSrCLWbakz\r\nVwPlPUz4vjZJWsxIaXsGXyI410PdnOtGnGZVGBJrfXd1HG6XxwEenn+B2HuM\r\n8WfJy1SC8p9GJN4hYp6ARt7OGRDEuJ+KbvGimDxKQKLcIq76L9NMBnHHHnTm\r\nDNW+/DsayDofBJxqMfCu/rwEpkM2pWuH9vY07RqzNzao4kpvwQYOaU8g/ZB8\r\nKvOT732bBzhhHCP5DGHnZLgEmw/e4ZACBewhneNGEt9hwu0kSWBZ7o//1o6b\r\nmhzLxg1V0qzANoJCV1WP33buY2kzER1dNVY=\r\n=8swn\r\n-----END PGP SIGNATURE-----\r\n","size":4050,"noattachment":false,"key":"/hexo-front-matter/-/hexo-front-matter-4.1.0.tgz"},"main":"dist/front_matter","types":"./dist/front_matter.d.ts","engines":{"node":">=14"},"gitHead":"511ba4fca804017db1149c01373d90cb9b4093ea","scripts":{"test":"mocha test/index.js --require ts-node/register","build":"tsc -b","clean":"tsc -b --clean","eslint":"eslint .","pretest":"npm run clean && npm run build","test-cov":"c8 --reporter=lcovonly npm run test","prepublish ":"npm run clean && npm run build"},"_npmUser":{"name":"yoshinorin","email":"yoshinorin.net@outlook.com"},"repository":{"url":"git+https://github.com/hexojs/hexo-front-matter.git","type":"git"},"_npmVersion":"8.4.0","description":"Front-matter parser.","directories":{},"_nodeVersion":"18.14.2","dependencies":{"js-yaml":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^7.12.0","chai":"^4.3.6","mocha":"^10.0.0","eslint":"^8.23.1","ts-node":"^10.9.1","typescript":"^4.8.4","@types/node":"^18.11.7","@types/js-yaml":"^4.0.5","eslint-config-hexo":"^5.0.0","@typescript-eslint/parser":"^5.41.0","@typescript-eslint/eslint-plugin":"^5.41.0"},"_npmOperationalInternal":{"tmp":"tmp/hexo-front-matter_4.1.0_1681998374244_0.39414977653718375","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":1681998374413,"_cnpm_publish_time":1681998374413,"dist-tags":{"latest":"5.0.0"}}