{"name":"hexo-front-matter","version":"4.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@4.2.0","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":"a56b3ca88b0e794bff8f6aa7b18625af29e00b2f","tarball":"http://registry-npm.ywwl.com/hexo-front-matter/download/hexo-front-matter-4.2.0.tgz","fileCount":5,"integrity":"sha512-V29fUIEQo/WJpbJuE+/dY4h3v1vOBE2ZkMavQziHacxAtZqmrqSCYyuMc4AQedkElnPgd3Uj7VHGNtvKeQ3khg==","signatures":[{"sig":"MEYCIQCM7XX4q0WS8OUvLsKfelh9/5KCZ3EtWmDx7iQEeFKNeQIhAPUO8q8jc9TgtYl92oX6vTQwV/sFkEIDDyeWqHLYi+QO","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13264,"size":4050,"noattachment":false,"key":"/hexo-front-matter/-/hexo-front-matter-4.2.0.tgz"},"main":"dist/front_matter","types":"./dist/front_matter.d.ts","engines":{"node":">=14"},"gitHead":"21f72f1e147ad78f4d6111f94803711492060eb7","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":"8.19.4","description":"Front-matter parser.","directories":{},"_nodeVersion":"16.20.2","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.0_1698742196685_0.03662181572973977","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":1698742196856,"_cnpm_publish_time":1698742196856,"dist-tags":{"latest":"5.0.0"}}