{"name":"hexo-front-matter","version":"5.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@5.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":"jlhwung@gmail.com"},{"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":"ca04e2c0035e6f5b503fd80fadb9950fe053f410","tarball":"http://registry-npm.ywwl.com/hexo-front-matter/download/hexo-front-matter-5.0.0.tgz","fileCount":8,"integrity":"sha512-LPjSDyubGKblSJADJI7SOaMGqz98zBNvm639FlmQlqqTHjeg3yXYiw6dL+geIIOeYCR1JF4WLYDVLDCiT6HQIA==","signatures":[{"sig":"MEQCIBQrDSK7Ud5FU0cI0dBdHAPz5XNacU6H299Os6IwRS4uAiAD5qF/pkUqPvk54y1lAnJNjuVRMhfowmnh6mzOJJUtCw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":18844,"size":6026,"noattachment":false,"key":"/hexo-front-matter/-/hexo-front-matter-5.0.0.tgz"},"main":"dist/front_matter","types":"./dist/front_matter.d.ts","engines":{"node":">=20.19.0"},"gitHead":"352a7298d121039b02bbf4813cd0eaaeb39ba8d9","scripts":{"test":"mocha","build":"tsc -b","clean":"tsc -b --clean","eslint":"eslint .","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":"10.2.4","description":"Front-matter parser.","directories":{},"_nodeVersion":"25.1.0","dependencies":{"yaml":"2.7.1","luxon":"^3.6.1"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^10.1.2","chai":"^6.2.0","mocha":"^11.7.1","eslint":"^8.23.1","ts-node":"^10.9.1","typescript":"^5.2.2","@types/chai":"^5.0.1","@types/node":"^22.14.0","@types/luxon":"^3.6.2","@types/mocha":"^10.0.6","eslint-config-hexo":"^5.0.0"},"_npmOperationalInternal":{"tmp":"tmp/hexo-front-matter_5.0.0_1762267610461_0.19882495137523915","host":"s3://npm-registry-packages-npm-production"},"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":1762267610636,"_cnpm_publish_time":1762267610636,"dist-tags":{"latest":"5.0.0"}}