{"name":"hexo-front-matter","version":"3.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@3.0.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":"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":"b9a473c6cb910c73f9fea49f506e98540fcea6cb","tarball":"http://registry-npm.ywwl.com/hexo-front-matter/download/hexo-front-matter-3.0.0.tgz","fileCount":3,"integrity":"sha512-hSQTPUmB/BCe1BFYmXRkPyLk8rqbBqHCQq+rjwwOJuEfOADrFaVK2VPZb90tJzPyXE1xSxpgCxE/AZq0CyTVwg==","signatures":[{"sig":"MEYCIQCdpJNVO8TXZjy5RRDtIaqYQdbC2nHMDKOlR6Uq5U5XKgIhANukIDdLE2MqqASbgMqNmXcGQEtHB/3+DBrs+BNUCLSd","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6176,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh0k78CRA9TVsSAnZWagAANvwP/AuihbeZJDNnagPWCmX1\nn0zKrgZvGPxM0Hx+9HMMV+MqC7I5AxkxCzASvKagFVh/Cds5HSHCvKwvh3iS\nqVXFJBvGvzErBQktIIups0QPS/th3YK3drNbifeB7TgnReqXRufm7QAetffI\nXM5vfCuCxeiq6t7VpqS59bDr6hvOAf3cubl7ZoV9z2Yf5vWXrYzMImOOiCRL\nTCCo3acG9liuI0/+BV8/zJ9Xqx1fU+ldvVWi+z7JgoylbHmYRuq5rEznpS3D\n3bbRNNWyuIVtWeOz6+TtW9WnmVDTo//5RbYf/jGvYMHnp8ileJLK0oMtD/Ss\nEWdDtilxUibdMSNdUCCptW5mKMaYFxJNNCMArbl+mzjhgEpot9CNf6/dZeL1\nFNMZWi0rGVL53JsPvamjFu9RjWrTnpwuTOQRDibMAWMqJwqSjXt3fbdABOHR\nimcfdsZxeX+qZi8ctFmjJ4rg2N2sZeOK49jvjdKgm1kZ8mkI/z/5V2PlyAC2\nC6OfCvj+m3rw3au0J2+M+aOukvb9E5UG/pvcy1apA2AI6eNOVq8nGza4mmvB\nLlsQ5YvzbfehXSU/xP8kK8B8Qq3qdKAagir7Vd2E6gGafm66VQ/5McfYHnW8\nIfL7AyXv/SgiDYdZeMPME0yTIAUsfebETbv9dPNWsZuG1mzm0jI3TAWG7QJC\numlG\r\n=PVf2\r\n-----END PGP SIGNATURE-----\r\n","size":2380,"noattachment":false,"key":"/hexo-front-matter/-/hexo-front-matter-3.0.0.tgz"},"main":"lib/front_matter","engines":{"node":">=12.13.0"},"gitHead":"471319221c8442322c022850cca6f4e878f57572","scripts":{"test":"mocha test/index.js","eslint":"eslint .","test-cov":"nyc --reporter=lcovonly npm run test"},"_npmUser":{"name":"yoshinorin","email":"nayo-msoft@outlook.jp"},"repository":{"url":"git+https://github.com/hexojs/hexo-front-matter.git","type":"git"},"_npmVersion":"8.3.0","description":"Front-matter parser.","directories":{"lib":"./lib"},"_nodeVersion":"16.1.0","dependencies":{"js-yaml":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.0.0","chai":"^4.2.0","mocha":"^9.1.3","eslint":"^8.0.1","moment":"^2.24.0","eslint-config-hexo":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/hexo-front-matter_3.0.0_1641172732505_0.03082392498956099","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":1641172732689,"_cnpm_publish_time":1641172732689,"dist-tags":{"latest":"5.0.0"}}