{"name":"hexo-front-matter","version":"4.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@4.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":"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":"73ba7dce374b0048e215b21c9e3ab01507487951","tarball":"http://registry-npm.ywwl.com/hexo-front-matter/download/hexo-front-matter-4.0.0.tgz","fileCount":3,"integrity":"sha512-2pQ24inDCdqbxuKQ4cK+1ak0AhSEVC1zTY/kVVyqi5m3lB/wYtAjSWp+elp+FqBmJOynogMpoBnUry/4fJkmAg==","signatures":[{"sig":"MEUCIBqF63X8j0FePoZAK9vCa0GOr2Tmw1Rg4gopBBB32RHnAiEAg0Iyz509nRb63IvKg3++XufXu3gKUR1fyEciYFPcuZk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6146,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjV+zrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoBaQ//fk4CZ5VRoSQ2VJihEJTJo63RRD6JxluNz3g2mfUURyslrlOE\r\nnx95lM+ttJrJ6/0H3H6z8i9xbvkJMw81tNinKdNdMW/CrlDqCLpWGH4aSrXv\r\nJGvM9xBuTPUI3z4FThcvAtskFqOmxdokgp7xItXMLm8XGAMtlqsWEh+HUod7\r\nYsphLDP4fahOfAkKFIZFPHeMqFNawuHZVYO1cqv/RfTsdFFVAxQ8J13vBMSa\r\n0NeWTIFC8lR4KJDhcZyNXWqRetpWibUOL9IWN/emG1SX6eBFYKsfLarc2+vC\r\nF+OzKGQ+6zH5f6GSv9zYn7TKpg66k5vgYSzLPVkXM5CZQChllPmEg1/yHXfI\r\nFxVOvxf8MeSZmstOoJf1PlgIWZtGr1NF495dwNLGA9qm774pvnxsSXWmyhLm\r\nBIoj5WJkJlTH1gkK85+kYZPy1DFuF1qSwQLFGgNpWLWDjWtvY7IGQgB5qKTe\r\nTOIMVH3PiiS5cf0oMvRy/cMNAdeIEXrwOzb5a3++TSO/w9+D5DDbJSlXg2yA\r\nI1tnbNwucgckgDij4yTu2A12K4C8M7zyOHpq4+ENYraOp5iDfbOa5ZQipenj\r\nt0yo8Dp5Wq3OLr7awqYHwVZaAcIALHBaFUk7PgyZ7xAK8RK8yT1Hq1JeczZj\r\nmfHobwMtgIXAvyHKIi8m6vwf20RfpoFx7Pk=\r\n=s9qU\r\n-----END PGP SIGNATURE-----\r\n","size":2373,"noattachment":false,"key":"/hexo-front-matter/-/hexo-front-matter-4.0.0.tgz"},"main":"lib/front_matter","engines":{"node":">=14"},"gitHead":"1adb3c6887d73ad4d12c317dae713fd155c5e4ae","scripts":{"test":"mocha test/index.js","eslint":"eslint .","test-cov":"c8 --reporter=lcovonly npm run test"},"_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":{"lib":"./lib"},"_nodeVersion":"16.16.0","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","eslint-config-hexo":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/hexo-front-matter_4.0.0_1666706667752_0.6185191941901576","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":1666706667901,"_cnpm_publish_time":1666706667901,"dist-tags":{"latest":"5.0.0"}}