{"name":"hexo-front-matter","version":"2.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@2.0.0","maintainers":[{"name":"abnerchou","email":"hi@abnerchou.me"},{"name":"curben","email":"bushedge@protonmail.com"},{"name":"ertrzyiks","email":"mateusz.derks@gmail.com"},{"name":"hexobot","email":"hexojs@gmail.com"},{"name":"jlhwung","email":"i@jhuang.me"},{"name":"tomap","email":"piartt@gmail.com"},{"name":"tommy351","email":"tommy351@gmail.com"},{"name":"yoshinorin","email":"nayo-msoft@outlook.jp"}],"homepage":"https://github.com/hexojs/hexo-front-matter#readme","bugs":{"url":"https://github.com/hexojs/hexo-front-matter/issues"},"dist":{"shasum":"03f39a9eedb16c5448dbb3bec7dff2c4e224006c","tarball":"http://registry-npm.ywwl.com/hexo-front-matter/download/hexo-front-matter-2.0.0.tgz","fileCount":3,"integrity":"sha512-IR3tjAyK2Ga/0a/WDAoNy5+n3ju2/mkuAsCDEeGgGLf5+7kkiOkkG/FrnueuYgz0h2MPfWDLBiDsSTCmB0sLCA==","signatures":[{"sig":"MEUCIGTsndVclMPsDrVhIgqthXQGQCp1y8CfRMQLB4QrD/PpAiEAonvvfgMQzUBPo2L+i1MS9r1ap2ex7KfkCRkt1LsYy3k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":6122,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfG9IBCRA9TVsSAnZWagAAYp0QAJS/lNkpjzCNPy9ZvgKT\nlCn0sD+JbWMTarvYkLS0Kh6j99leC7X6P0aCjshiwG/GKybybwMxeaxuGaYC\n5AM86kFLBtMxAIJhTx2z4krUD3Vy9DjpRqAzi1KRZvTDpUn1aOxWdsT5Dx4v\neGvoGtms1lu+Ho0m1IoGxDu63Tjc7a1/CbSDpmQXp+5bTW+b/pN9Q+4lxtpS\nvjfLF2w8IxmRNolqD/j8pfSLgG/ypRTqTVXxlcBTqDQLRQ0hkZ5MB122ezEq\nznaBpVJegFn2iqD1Qe/VnC9l/0mEZRKXy9DbdiH1pngPnmQ/Rmz//bQc46Xd\ncwI0nyMxxF/CU56xmrRVRRFQAmnVrCFqWMm5Lr0zxYRgrSeRnrn8DYK4BIoA\ncZW3iJcd2GUbcBnrDnZsvs3DxfsPOyhe1cskF3R/PydzMb8kwwkUJU4INJ16\nlnjujkK5UKk32D1O8pX7NmWPBVmOos6VN4nfcYmLDtV46UieHJtiGokzNO3j\nhWVTJj6unw7XXfbtqhh6UV3LIgDD9HiG6chZTZcI9c3vrbcermItPJD90kAS\n95rFWPs1nSOGk+hdFbXG4pzNFLuE8zTwIpmYiGmSwA1zDZTJn0gCEqjWdhvM\nnZf+VfkP258LFMsmOzvQpv6rt9YqiDSRAl8jAXGoyoC56agoEkxSH6GXglbO\nk9vg\r\n=WO/x\r\n-----END PGP SIGNATURE-----\r\n","size":2347,"noattachment":false,"key":"/hexo-front-matter/-/hexo-front-matter-2.0.0.tgz"},"main":"lib/front_matter","engines":{"node":">=10.13.0"},"gitHead":"ccbdff36d151a56932418cdc6d0329d866032a1b","scripts":{"test":"mocha test/index.js","eslint":"eslint .","test-cov":"nyc npm run test"},"_npmUser":{"name":"curben","email":"bushedge@protonmail.com"},"repository":{"url":"git+https://github.com/hexojs/hexo-front-matter.git","type":"git"},"_npmVersion":"6.14.5","description":"Front-matter parser.","directories":{"lib":"./lib"},"_nodeVersion":"14.4.0","dependencies":{"js-yaml":"^3.13.1"},"_hasShrinkwrap":false,"devDependencies":{"nyc":"^15.0.0","chai":"^4.2.0","mocha":"^8.0.1","eslint":"^7.1.0","moment":"^2.24.0","eslint-config-hexo":"^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/hexo-front-matter_2.0.0_1595658753338_0.49751985380432573","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":1595658753497,"_cnpm_publish_time":1595658753497,"dist-tags":{"latest":"5.0.0"}}