{"name":"hexo-front-matter","version":"0.2.3","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.3","maintainers":[{"name":"tommy351","email":"tommy351@gmail.com"}],"homepage":"https://github.com/hexojs/hexo-front-matter#readme","bugs":{"url":"https://github.com/hexojs/hexo-front-matter/issues"},"dist":{"shasum":"c7ca8ef420ea36bd85e8408a2e8c9bf49efa605e","tarball":"http://registry-npm.ywwl.com/hexo-front-matter/download/hexo-front-matter-0.2.3.tgz","integrity":"sha512-GL/pGfYqsvjMgxjhOWv1zAc7t4JoGUow+CH9Tes/5N2wKxxTzt2woKEMHz1+c01CmhdVYUR4lO3R1ZAcxc0caA==","signatures":[{"sig":"MEQCIBjX8ctkChmHq1A2sQv2u+Q57SoruGTM4scQroaXqigsAiBZ8236pQpjYMl+20nlymX8Z/eTNoxNHoU+dgm6yuxRQQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":2771,"noattachment":false,"key":"/hexo-front-matter/-/hexo-front-matter-0.2.3.tgz"},"main":"lib/front_matter","_from":".","_shasum":"c7ca8ef420ea36bd85e8408a2e8c9bf49efa605e","gitHead":"393f1d564c8f404a71c138af466cba48d28472ee","scripts":{"jscs":"jscs .","test":"mocha test/index.js","eslint":"eslint .","test-cov":"istanbul cover --print both _mocha -- test/index.js"},"_npmUser":{"name":"tommy351","email":"tommy351@gmail.com"},"repository":{"url":"git+https://github.com/hexojs/hexo-front-matter.git","type":"git"},"_npmVersion":"3.7.1","description":"Front-matter parser.","directories":{"lib":"./lib"},"_nodeVersion":"4.3.0","dependencies":{"js-yaml":"^3.6.1"},"devDependencies":{"chai":"^3.5.0","jscs":"^3.0.4","mocha":"^2.5.3","eslint":"^2.12.0","moment":"^2.13.0","istanbul":"^0.4.3","jscs-preset-hexo":"^1.0.1","eslint-config-hexo":"^1.0.3"},"_npmOperationalInternal":{"tmp":"tmp/hexo-front-matter-0.2.3.tgz_1465820896650_0.4268180311191827","host":"packages-12-west.internal.npmjs.com"},"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":1465820897252,"_cnpm_publish_time":1465820897252,"dist-tags":{"latest":"5.0.0"}}