{"name":"hexo-front-matter","version":"4.2.1","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.2.1","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":"c28ee74f66ab76c98fa73877b5ff7a9cc14161cc","tarball":"http://registry-npm.ywwl.com/hexo-front-matter/download/hexo-front-matter-4.2.1.tgz","fileCount":5,"integrity":"sha512-sJJI0GNmejYiwBvgnGRKn5V3sbODB4dNPr8jyw2Qp0PRHr4Uuyv8iyxw6WfK3+T7yvzYvJOh+tZ7jnwr2BYARA==","signatures":[{"sig":"MEUCIQC9JW0QtE7XraN3+ZbDWo/Rbh2WfOAh8JF3iUCScWiSXwIgPfx066ANkT7/hV3is+GPfku7edOKpBMUD5ZBKggc6q0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13087,"size":4045,"noattachment":false,"key":"/hexo-front-matter/-/hexo-front-matter-4.2.1.tgz"},"main":"dist/front_matter","types":"./dist/front_matter.d.ts","engines":{"node":">=14"},"gitHead":"98e2ce11f9ecbcab63ba4906bc3eb70a4e2cf7a7","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":"9.8.0","description":"Front-matter parser.","directories":{},"_nodeVersion":"20.5.1","dependencies":{"js-yaml":"^4.1.0"},"_hasShrinkwrap":false,"devDependencies":{"c8":"^8.0.0","chai":"^4.3.6","mocha":"^10.0.0","eslint":"^8.23.1","ts-node":"^10.9.1","typescript":"^5.2.2","@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.2.1_1698753969539_0.9158214392650879","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":1698753969704,"_cnpm_publish_time":1698753969704,"dist-tags":{"latest":"5.0.0"}}