{"name":"hexo-front-matter","version":"0.2.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@0.2.0","maintainers":[{"name":"tommy351","email":"tommy351@gmail.com"}],"homepage":"https://github.com/hexojs/front-matter","bugs":{"url":"https://github.com/hexojs/front-matter/issues"},"dist":{"shasum":"48b3b78d3cf590f9170d6dd92a1d7aaf9896f0ca","tarball":"http://registry-npm.ywwl.com/hexo-front-matter/download/hexo-front-matter-0.2.0.tgz","integrity":"sha512-5igzUe830nVh4wARYEFFu3wPyretp2uieZ6AHL56Kx1YzmztkqQoZef4QpYVWNBHZZEDoMm08WZJVx/yoiVddA==","signatures":[{"sig":"MEYCIQD2ZtjhhIIEHg749u/uDpRC2a/h+lXpKHOcDjprugYinwIhAOZ0WAaF4rvR7lJLW1rSY/5k7P7ZCjcN5xN5j783m6Am","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":2434,"noattachment":false,"key":"/hexo-front-matter/-/hexo-front-matter-0.2.0.tgz"},"main":"lib/front_matter","_from":".","_shasum":"48b3b78d3cf590f9170d6dd92a1d7aaf9896f0ca","engines":{"node":">= 0.10.0"},"gitHead":"ad3afdf61375b46a60ff68ecae7462bd20975168","scripts":{"test":"gulp test"},"_npmUser":{"name":"tommy351","email":"tommy351@gmail.com"},"repository":{"url":"https://github.com/hexojs/front-matter","type":"git"},"_npmVersion":"2.2.0","description":"Front-matter parser.","directories":{"lib":"./lib"},"_nodeVersion":"0.10.35","dependencies":{"js-yaml":"^3.2.5"},"devDependencies":{"chai":"^1.9.1","gulp":"^3.8.9","mocha":"^2.0.1","moment":"^2.8.4","rimraf":"^2.2.8","coveralls":"^2.11.2","gulp-mocha":"^2.0.0","gulp-jshint":"^1.8.6","gulp-istanbul":"^0.5.0","jshint-stylish":"^1.0.0","gulp-load-plugins":"^0.8.0"},"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":1422029724644,"_cnpm_publish_time":1422029724644,"dist-tags":{"latest":"5.0.0"}}