{"name":"hexo-front-matter","version":"0.0.2","keywords":["front-matter","yaml","yml","hexo"],"author":{"url":"http://zespia.tw","name":"Tommy Chen","email":"tommy351@gmail.com"},"license":"MIT","_id":"hexo-front-matter@0.0.2","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":"7471d7564590f67617a3974fe4a3ffcb1a9ecb49","tarball":"http://registry-npm.ywwl.com/hexo-front-matter/download/hexo-front-matter-0.0.2.tgz","integrity":"sha512-0p/v4koBOT3X55enUaWkY+dzTDHcQkRICZ5MbYvd5YbG1idDpls7RsVByWXK2SYh6s9W1HThY3Y4aKzebq26Dg==","signatures":[{"sig":"MEUCIA6oEi6KEtn4HzM0Z9ckoM689apVtZ0gnvqMLlS52+GBAiEA7XzalDHk7GRvt+aKQuwNu03HH6lIetkErKuhIUTa9IU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"size":1765,"noattachment":false,"key":"/hexo-front-matter/-/hexo-front-matter-0.0.2.tgz"},"main":"index","_from":".","scripts":{"test":"make test"},"_npmUser":{"name":"tommy351","email":"tommy351@gmail.com"},"repository":{"url":"git://github.com/hexojs/front-matter.git","type":"git"},"_npmVersion":"1.4.3","description":"Front-matter parser.","directories":{},"dependencies":{"yamljs":"0.1.4"},"devDependencies":{"chai":"^1.9.1","mocha":"^1.18.2","moment":"^2.7.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":1404404737513,"_cnpm_publish_time":1404404737513,"dist-tags":{"latest":"5.0.0"}}