{"_id":"yaml-front-matter","_rev":"53-6b22d1849de31c7066bec8a328c9a099","name":"yaml-front-matter","description":"yaml front matter for JS. Parse yaml or JSON from the beginning of files.","dist-tags":{"latest":"4.1.1","next":"4.0.0-4"},"versions":{"1.0.1":{"author":{"name":"Derek Worthen"},"name":"yaml-front-matter","description":"yaml front matter for JS using the js-yaml module","version":"1.0.1","repository":{"type":"git","url":"https://github.com/dworthen/js-yaml-front-matter"},"dependencies":{"commander":"1.0.0","js-yaml":"~1.0.1"},"devDependencies":{"should":"0.6.3","mocha":"~1.3.0"},"engines":{"node":">=0.8.x","npm":"1.1.x"},"bin":{"yaml-front-matter":"bin/js-yaml-front.js","js-yaml":"node_modules/js-yaml/bin/js-yaml.js"},"_id":"yaml-front-matter@1.0.1","dist":{"shasum":"ef8e80707ef42cac12f9a7ff7afd827a95eeb69f","tarball":"https://registry.npmjs.org/yaml-front-matter/-/yaml-front-matter-1.0.1.tgz","integrity":"sha512-N2iJ8VVBsqVRq0TNg7PoIu1lqLCCIV3HT/w147ae+jLpbn1f1weVzJskpH2lq12CXAyRlDMD3f/bPhklFQdAFQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAdyUTZlCk8XM1z3VRVoc/YZCc7sXofTk2vG7oNpGAPHAiEA9LFtB0Fke+j+l+rGIWJjdk5LoFUlGDKkOLKV0FKa40Y="}]},"_npmVersion":"1.1.59","_npmUser":{"name":"dworthen","email":"worthend.derek@gmail.com"},"maintainers":[{"name":"dworthen","email":"worthend.derek@gmail.com"}],"directories":{}},"1.0.2":{"author":{"name":"Derek Worthen"},"name":"yaml-front-matter","description":"yaml front matter for JS using the js-yaml module","version":"1.0.2","repository":{"type":"git","url":"https://github.com/dworthen/js-yaml-front-matter"},"dependencies":{"commander":"1.0.0","js-yaml":"~1.0.2"},"devDependencies":{"should":"0.6.3","mocha":"~1.3.0"},"engines":{"node":">=0.8.x","npm":"1.1.x"},"bin":{"yaml-front-matter":"bin/js-yaml-front.js","js-yaml":"node_modules/js-yaml/bin/js-yaml.js"},"_id":"yaml-front-matter@1.0.2","dist":{"shasum":"cda345ff3f7f4cf35d7408bb22ffa47e9503bb28","tarball":"https://registry.npmjs.org/yaml-front-matter/-/yaml-front-matter-1.0.2.tgz","integrity":"sha512-NU6jFnFbE7DH6e5ei93mLggODYTmgLKipHmvoEYlS1qSe1eup8pAtS691m8OY52c3cuYaVkluMjNQaJnI3XY5g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGaPYnta3ldgOp9/SWC1X4hc9BKILzJ/0nKCys6BciyzAiEA+ocLdLKbLa88oc5g71r7mAJWTwqRLoFu/58118FXXV8="}]},"_npmVersion":"1.1.59","_npmUser":{"name":"dworthen","email":"worthend.derek@gmail.com"},"maintainers":[{"name":"dworthen","email":"worthend.derek@gmail.com"}],"directories":{}},"1.0.3":{"author":{"name":"Derek Worthen"},"name":"yaml-front-matter","description":"yaml front matter for JS using the js-yaml module","version":"1.0.3","repository":{"type":"git","url":"https://github.com/dworthen/js-yaml-front-matter"},"dependencies":{"commander":"1.0.0","js-yaml":"~1.0.2"},"devDependencies":{"should":"0.6.3","mocha":"~1.3.0"},"engines":{"node":">=0.8.x","npm":"1.1.x"},"bin":{"yaml-front-matter":"bin/js-yaml-front.js","js-yaml":"node_modules/js-yaml/bin/js-yaml.js"},"_id":"yaml-front-matter@1.0.3","dist":{"shasum":"a08d2811e62a1bd345fa3763d1603ce3b95a20d3","tarball":"https://registry.npmjs.org/yaml-front-matter/-/yaml-front-matter-1.0.3.tgz","integrity":"sha512-4LMSQwMiV0ZUEJowb5dctaYpSXrMHmyp6y+HNQur89NuEX/yDr4xJzoXL4LDtxWKBcwstMXK6VIf1h2RDTLM4A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHIeJOy/IT3Rr+d8jeibgLHJnnWFEC1HWCjZWXL9eivCAiA9x6YD85q5xnPU5cdoUMg52dnoOkWDjOVyen1S9RGB9A=="}]},"_npmVersion":"1.1.59","_npmUser":{"name":"dworthen","email":"worthend.derek@gmail.com"},"maintainers":[{"name":"dworthen","email":"worthend.derek@gmail.com"}],"directories":{}},"2.1.0":{"author":{"name":"Derek Worthen"},"name":"yaml-front-matter","description":"yaml front matter for JS using the js-yaml module","version":"2.1.0","repository":{"type":"git","url":"https://github.com/dworthen/js-yaml-front-matter"},"dependencies":{"commander":"1.0.0","js-yaml":"~2.1.0"},"devDependencies":{"should":"0.6.3","mocha":"~1.3.0"},"engines":{"node":">=0.8.x","npm":"1.1.x"},"bin":{"yaml-front-matter":"bin/js-yaml-front.js","js-yaml":"node_modules/js-yaml/bin/js-yaml.js"},"bugs":{"url":"https://github.com/dworthen/js-yaml-front-matter/issues"},"_id":"yaml-front-matter@2.1.0","dist":{"shasum":"f11a46efef1a3b09218643b9f1058920e09e3ccf","tarball":"https://registry.npmjs.org/yaml-front-matter/-/yaml-front-matter-2.1.0.tgz","integrity":"sha512-uL4WKh0z/Yi9c1jGmpwl1Fjgqen/fSlAFwui3h/uuC7YzgzzgbIzzLO/gwNr6bwIz2Wi7UbFEmsUYnsF2eHMeQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBVw9EiVGrSxPBsBhUaN6HlOKTZrUacEJRdWsRU9S2opAiEApyb/SSci+UO7aAIRXe0pbUQNFzWPlg2C6rKWHS8EL64="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"dworthen","email":"worthend.derek@gmail.com"},"maintainers":[{"name":"dworthen","email":"worthend.derek@gmail.com"}],"directories":{}},"2.1.1":{"author":{"name":"Derek Worthen"},"name":"yaml-front-matter","description":"yaml front matter for JS using the js-yaml module","version":"2.1.1","repository":{"type":"git","url":"https://github.com/dworthen/js-yaml-front-matter"},"dependencies":{"commander":"1.0.0","js-yaml":"~2.1.0"},"devDependencies":{"should":"0.6.3","mocha":"~1.3.0"},"engines":{"node":">=0.8.x","npm":"1.1.x"},"bin":{"yaml-front-matter":"bin/js-yaml-front.js","js-yaml":"node_modules/js-yaml/bin/js-yaml.js"},"bugs":{"url":"https://github.com/dworthen/js-yaml-front-matter/issues"},"_id":"yaml-front-matter@2.1.1","dist":{"shasum":"644b6c248ad7c01578824f66ab8f9be02113667a","tarball":"https://registry.npmjs.org/yaml-front-matter/-/yaml-front-matter-2.1.1.tgz","integrity":"sha512-tmxChzA6vpmnsWGlZDt4/d8QvkaFjurV6zd2aRE4ORN/nINAIfUoDP/qkggiWC/9E+kiNuftqiSHMJ9rUk0BPw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIQD9L59ZfiOdeJnkEP+JV95kr8DcdTEmu/LsR3sRw4sh/QIffKXdpisRljNZqJvDRFO6xSWfuToeq1VCRrdDRUlwcg=="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"dworthen","email":"worthend.derek@gmail.com"},"maintainers":[{"name":"dworthen","email":"worthend.derek@gmail.com"}],"directories":{}},"2.1.11":{"author":{"name":"Derek Worthen"},"name":"yaml-front-matter","description":"yaml front matter for JS using the js-yaml module","version":"2.1.11","repository":{"type":"git","url":"https://github.com/dworthen/js-yaml-front-matter"},"dependencies":{"commander":"1.0.0","js-yaml":"~2.1.0"},"devDependencies":{"should":"0.6.3","mocha":"~1.3.0"},"engines":{"node":">=0.8.x","npm":"1.1.x"},"bin":{"yaml-front-matter":"bin/js-yaml-front.js","js-yaml":"node_modules/js-yaml/bin/js-yaml.js"},"bugs":{"url":"https://github.com/dworthen/js-yaml-front-matter/issues"},"_id":"yaml-front-matter@2.1.11","dist":{"shasum":"3382a53870637cff0df7d7ec11a788d7fe6bcd59","tarball":"https://registry.npmjs.org/yaml-front-matter/-/yaml-front-matter-2.1.11.tgz","integrity":"sha512-n9evEZ7UiiI0KzzsZ0gev1VNvKwgyaCurMTg0yHChGtPScIJFzJ+1m23AC6OHKT6Q+G0cg2bH0H6nbMMZxVZxw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFIM648vVfbFoedEaygO9kUUK2JkO6/gWekyp5P/pGQEAiEAvKeMO+iNSszYozmI+CW7xQzRfYOww1Jc8cOMPta2T3g="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"dworthen","email":"worthend.derek@gmail.com"},"maintainers":[{"name":"dworthen","email":"worthend.derek@gmail.com"}],"directories":{}},"2.2.0":{"author":{"name":"Derek Worthen"},"name":"yaml-front-matter","description":"yaml front matter for JS using the js-yaml module","version":"2.2.0","repository":{"type":"git","url":"https://github.com/dworthen/js-yaml-front-matter"},"dependencies":{"commander":"1.0.0","js-yaml":"~3.0.1"},"devDependencies":{"should":"0.6.3","mocha":"~1.3.0"},"engines":{"node":">=0.8"},"bin":{"yaml-front-matter":"bin/js-yaml-front.js","js-yaml":"node_modules/js-yaml/bin/js-yaml.js"},"scripts":{"test":"./node_modules/mocha/bin/mocha -u bdd --reporter spec"},"bugs":{"url":"https://github.com/dworthen/js-yaml-front-matter/issues"},"_id":"yaml-front-matter@2.2.0","dist":{"shasum":"855102695f8dfb1eb12bab236daacaa039c77b18","tarball":"https://registry.npmjs.org/yaml-front-matter/-/yaml-front-matter-2.2.0.tgz","integrity":"sha512-NQBvLskT2AFIfPgtm+ZufHewICKFSLmf3TM3qU5gbFWNrYb2vM8/ohD0XJCg5VuI1GZ2BUnG5iNu5lenCy+ktw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCj4PTX65BDRmK9VeLY43l/LVuxjJ1DNIgL9GKb98dK+QIgIT8mQ03zUPHxPe2u8ZuS6AmEKZCYnSA+XCkWOB02B9o="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"dworthen","email":"worthend.derek@gmail.com"},"maintainers":[{"name":"dworthen","email":"worthend.derek@gmail.com"}],"directories":{}},"3.0.1":{"author":{"name":"Derek Worthen"},"name":"yaml-front-matter","description":"yaml front matter for JS using the js-yaml module","version":"3.0.1","repository":{"type":"git","url":"https://github.com/dworthen/js-yaml-front-matter"},"dependencies":{"commander":"1.0.0","js-yaml":"~3.0.1","is-browser":"~2.0.0"},"devDependencies":{"should":"0.6.3","mocha":"~1.3.0","serve":"~1.3.0"},"engines":{"node":">=0.8"},"bin":{"yaml-front-matter":"bin/js-yaml-front.js","js-yaml":"node_modules/js-yaml/bin/js-yaml.js"},"scripts":{"test":"./node_modules/mocha/bin/mocha -u bdd --reporter spec","start":"./node_modules/serve/bin/serve ./"},"bugs":{"url":"https://github.com/dworthen/js-yaml-front-matter/issues"},"_id":"yaml-front-matter@3.0.1","dist":{"shasum":"16815cf10150d29c3093b84fb3a0b6c99749ea91","tarball":"https://registry.npmjs.org/yaml-front-matter/-/yaml-front-matter-3.0.1.tgz","integrity":"sha512-HS8a7CW3VhpxppyJ0YtcZSfSbAOiMvZv0Bb8JQl2m+mHYu0jU1CX5FPIFNqC2Ht0pcuTTaXoTjNlCvROWzz4Mw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC9veZ7Ou/v00Kf3aRDlQIQ2GludXhotRtAY3sfazlESAiBbGLLh9Ri+ov6WaO4kmm7z3ktGxw407xMT4C5cdcIO8g=="}]},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"dworthen","email":"worthend.derek@gmail.com"},"maintainers":[{"name":"dworthen","email":"worthend.derek@gmail.com"}],"directories":{}},"3.2.3":{"author":{"name":"Derek Worthen"},"name":"yaml-front-matter","description":"yaml front matter for JS using the js-yaml module","version":"3.2.3","repository":{"type":"git","url":"https://github.com/dworthen/js-yaml-front-matter"},"dependencies":{"commander":"1.0.0","js-yaml":"~3.2.3","is-browser":"~2.0.0"},"devDependencies":{"should":"0.6.3","mocha":"~1.3.0","serve":"~1.3.0"},"engines":{"node":">=0.8"},"bin":{"yaml-front-matter":"bin/js-yaml-front.js","js-yaml":"node_modules/js-yaml/bin/js-yaml.js"},"scripts":{"test":"./node_modules/mocha/bin/mocha -u bdd --reporter spec","start":"./node_modules/serve/bin/serve ./"},"bugs":{"url":"https://github.com/dworthen/js-yaml-front-matter/issues"},"homepage":"https://github.com/dworthen/js-yaml-front-matter","_id":"yaml-front-matter@3.2.3","_shasum":"0a821d50b4c498808b5b462a20759a81c4378e55","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"dworthen","email":"worthend.derek@gmail.com"},"maintainers":[{"name":"dworthen","email":"worthend.derek@gmail.com"}],"dist":{"shasum":"0a821d50b4c498808b5b462a20759a81c4378e55","tarball":"https://registry.npmjs.org/yaml-front-matter/-/yaml-front-matter-3.2.3.tgz","integrity":"sha512-JTQEnZObYRtmayjxzcTGZNZNKv5G7PonR5pAaYh3L1cyijrXraGL2vUH/XYtd+d+tWhKQzzly8wGvBJz5tX+uw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDNmTAy4lsNdCaUHX2zT8LNYYqFvbENfDMW6gxAtnx+awIhAP21ATEakgRjJvEd8aLsLSPtSrUHVM3P+nELbOFispD1"}]},"directories":{}},"3.3.0":{"author":{"name":"Derek Worthen"},"license":"MIT","name":"yaml-front-matter","description":"yaml front matter for JS. Parse yaml or JSON from the beginning of files.","version":"3.3.0","keywords":["yaml"],"repository":{"type":"git","url":"git+https://github.com/dworthen/js-yaml-front-matter.git"},"dependencies":{"commander":"1.0.0","js-yaml":"^3.5.2"},"devDependencies":{"browser-sync":"^2.11.1","gulp":"^3.9.0","gulp-concat":"^2.6.0","gulp-rename":"^1.2.2","gulp-sourcemaps":"^1.6.0","gulp-uglify":"^1.5.1","mocha":"~1.3.0","should":"0.6.3"},"bin":{"yaml-front-matter":"bin/js-yaml-front.js","js-yaml":"node_modules/js-yaml/bin/js-yaml.js"},"scripts":{"test":"mocha -u bdd --reporter spec","start":"gulp serve"},"gitHead":"ef6adcda3b6707bbdb315c43993c8645746dde77","bugs":{"url":"https://github.com/dworthen/js-yaml-front-matter/issues"},"homepage":"https://github.com/dworthen/js-yaml-front-matter#readme","_id":"yaml-front-matter@3.3.0","_shasum":"0ac2c5fc760595c8c151d59cea6e50318a26b6ec","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"dworthen","email":"worthend.derek@gmail.com"},"dist":{"shasum":"0ac2c5fc760595c8c151d59cea6e50318a26b6ec","tarball":"https://registry.npmjs.org/yaml-front-matter/-/yaml-front-matter-3.3.0.tgz","integrity":"sha512-obXkpPhtgMm5p8i0yN7KXJSm/Fl/miqlW1WkttogX6U4joaYYii0eG1000HTeoFfl12EWKt73IZlTexe3dEiBg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCi2Abo5feNdGaxa3jvCez+9h+6P0gXCTYqQLqhyoIwgwIgGnuFSQYr0QzTD5bWeJH74yv4+33sugMP7UM83dbP01U="}]},"maintainers":[{"name":"dworthen","email":"worthend.derek@gmail.com"}],"directories":{}},"3.4.0":{"author":{"name":"Derek Worthen"},"license":"MIT","name":"yaml-front-matter","description":"yaml front matter for JS. Parse yaml or JSON from the beginning of files.","version":"3.4.0","keywords":["yaml"],"repository":{"type":"git","url":"git+https://github.com/dworthen/js-yaml-front-matter.git"},"dependencies":{"commander":"1.0.0","js-yaml":"^3.5.2"},"devDependencies":{"browser-sync":"^2.11.1","gulp":"^3.9.0","gulp-concat":"^2.6.0","gulp-rename":"^1.2.2","gulp-sourcemaps":"^1.6.0","gulp-uglify":"^1.5.1","mocha":"~1.3.0","should":"0.6.3"},"bin":{"yaml-front-matter":"bin/js-yaml-front.js"},"scripts":{"test":"mocha -u bdd --reporter spec","start":"gulp serve"},"gitHead":"9b7f0c72e99d1db9adb53f9da19fa1aefa89ef09","bugs":{"url":"https://github.com/dworthen/js-yaml-front-matter/issues"},"homepage":"https://github.com/dworthen/js-yaml-front-matter#readme","_id":"yaml-front-matter@3.4.0","_shasum":"c4bb5c41e8797fef584b1872cc052cdc26210dca","_from":".","_npmVersion":"2.14.12","_nodeVersion":"4.2.4","_npmUser":{"name":"dworthen","email":"worthend.derek@gmail.com"},"dist":{"shasum":"c4bb5c41e8797fef584b1872cc052cdc26210dca","tarball":"https://registry.npmjs.org/yaml-front-matter/-/yaml-front-matter-3.4.0.tgz","integrity":"sha512-HrBSU8vLQ1i1jL/eQY45htnujJMle4RxhGEX0SQEiHGMceSSiUMtttqsbXI0Iab2wTfO2pKI2GZmS2BTo4dklQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD9qL5ff/G/SwfSMZZ3KE9BYOJli4OrBFt2yvVeH2sMbwIgf5zgfJtyJAuR4DYQAhaneY4cR1ltOAXyI2/XZa+yC7A="}]},"maintainers":[{"name":"dworthen","email":"worthend.derek@gmail.com"}],"_npmOperationalInternal":{"host":"packages-9-west.internal.npmjs.com","tmp":"tmp/yaml-front-matter-3.4.0.tgz_1455748938749_0.28325859643518925"},"directories":{}},"4.0.0-0":{"author":{"name":"Derek Worthen"},"license":"MIT","name":"yaml-front-matter","description":"yaml front matter for JS. Parse yaml or JSON from the beginning of files.","main":"index.js","module":"src/index.js","version":"4.0.0-0","keywords":["yaml"],"repository":{"type":"git","url":"git+https://github.com/dworthen/js-yaml-front-matter.git"},"dependencies":{"commander":"1.0.0","js-yaml":"^3.10.0"},"devDependencies":{"babel-core":"^6.26.0","babel-loader":"^7.1.3","babel-preset-env":"^1.6.1","browser-sync":"^2.11.1","gulp":"^3.9.0","gulp-concat":"^2.6.0","gulp-rename":"^1.2.2","gulp-sourcemaps":"^1.6.0","gulp-uglify":"^1.5.1","http-server":"^0.11.1","mocha":"~1.3.0","should":"0.6.3","standard-version":"^4.3.0","webpack":"^4.0.1","webpack-cli":"^2.0.9"},"bin":{"yaml-front-matter":"bin/js-yaml-front.js"},"scripts":{"test":"mocha -u bdd --reporter spec","start":"npm run build:browser && http-server ./docs -p 8080","release":"standard-version","build":"webpack --mode production","build:browser":"webpack --mode production --env.browser"},"readme":"# Yaml Front Matter\r\n\r\nParses yaml or json at the front of a string. Places the parsed content, plus the rest of the string content, into an object literal.\r\n\r\n[Online Demo](https://dworthen.github.io/js-yaml-front-matter/).\r\n\r\n#### Breaking Changes\r\n\r\nThis readme is for the 4.x branch which introduces breaking changes. View the [changelog](CHANGELOG.md) for more information.\r\n\r\n## Example\r\n\r\nThis\r\n\r\n```yaml\r\n---\r\nname: Derek Worthen\r\nage: young\r\ncontact:\r\n  email: email@domain.com\r\n  address: some location\r\npets:\r\n  - cat\r\n  - dog\r\n  - bat\r\nmatch: !!js/regexp /pattern/gim\r\nrun: !!js/function function() { }\r\n---\r\nSome Other content\r\n```\r\n\r\nbecomes\r\n\r\n```js\r\n{ \r\n    name: 'Derek Worthen',\r\n    age: 'young',\r\n    contact: { email: 'email@domain.com', address: 'some location' },\r\n    pets: [ 'cat', 'dog', 'bat' ],\r\n    match: /pattern/gim,\r\n    run: [Function],\r\n    __content: '\\nSome Other Content' \r\n}\r\n```\r\n\r\nMay also use JSON\r\n\r\n```json\r\n---\r\n{\r\n    \"name\": \"Derek Worthen\",\r\n    \"age\": \"young\",\r\n    \"anArray\": [\"one\",\"two\"],\r\n    \"subObj\":{\"field1\": \"one\"}\r\n}\r\n---\r\nSome content\r\n```\r\n\r\n> __NOTE:__ The `---` are required to denote the start and end of front matter. There must be a newline after the opening `---` and a newline preceding the closing `---`.\r\n\r\n## Install\r\n\r\n#### npm\r\n\r\n```shell\r\n$ npm install yaml-front-matter\r\n```\r\n\r\nUse the `-g` flag if you plan on using the command line tool.\r\n\r\n```shell\r\n$ npm install yaml-front-matter -g\r\n```\r\n    \r\n#### Browser\r\n\r\nInclude the client script from [dist/yamlFront.js](dist/yamlFront.js). The library will be exposed as a global, `yamlFront`. The client script for [js-yaml](https://github.com/nodeca/js-yaml) is also required. May need to load espirma for some use cases. See [js-yaml](https://github.com/nodeca/js-yaml) for more information.\r\n\r\n```html\r\n<script src=\"https://unpkg.com/js-yaml@3.10.0/dist/js-yaml.js\"></script>\r\n<script src=\"js-yaml-front-client.min.js\"></script>\r\n<script>\r\n  // parse front matter with yamlFront.loadFront(String);\r\n</script>\r\n```\r\n\r\n## Running the Browser Example\r\n\r\n```shell\r\n$ npm install --dev && npm start\r\n```\r\n\r\nThen visit `localhost:8080`.\r\n\r\n## Building from source\r\n\r\nOutputs client files in `dist/`.\r\n\r\n```shell\r\n$ npm install --dev && npm run build\r\n```\r\n\r\n## Running Tests\r\n\r\n```shell\r\nnpm install --dev && npm test\r\n```\r\n\r\n## Command Line\r\n\r\n```shell\r\nUsage: yaml-front-matter [options] <file>\r\n\r\nOptions:\r\n\r\n-h, --help            output usage information\r\n-V, --version         output the version number\r\n-c, --content [name]  set the property name for the files contents [__content]\r\n```\r\n\r\n## JS-YAML\r\n\r\nYaml front matter wraps [js-yaml](https://github.com/nodeca/js-yaml) to support parsing yaml front-matter.\r\n\r\n## API\r\n\r\n### loadFront(string, [options])\r\n\r\n```js\r\nvar yamlFront = require('yaml-front-matter')\r\n  , input = [\r\n        '---\\npost: title one\\n',\r\n        'anArray:\\n - one\\n - two\\n',\r\n        'subObject:\\n prop1: cool\\n prop2: two',\r\n        '\\nreg: !!js/regexp /pattern/gim',\r\n        '\\nfun: !!js/function function() {  }\\n---\\n',\r\n        'content\\nmore'\r\n    ].join('');\r\n\r\nvar results = yamlFront.loadFront(input);\r\nconsole.log(results);\r\n```\r\n\r\nthe above will produce the following in the console.\r\n\r\n```shell\r\n{ post: 'title one',\r\n  anArray: [ 'one', 'two' ],\r\n  subObject: { obj1: 'cool', obj2: 'two' },\r\n  reg: /pattern/gim,\r\n  fun: [Function],\r\n  __content: '\\ncontent\\nmore' }\r\n```\r\n\r\nThe front-matter is optional.\r\n\r\n```\r\nfrontMatter.loadFront('Hello World');\r\n```\r\n\r\nWill produce\r\n\r\n```js\r\n{ __content: \"Hello World!\" }\r\n```\r\n\r\nContent all together is optional\r\n\r\n```js\r\nfrontMatter.loadFront('');\r\n// will produce { __content: '' }\r\n```\r\n\r\n### safeLoadFront(string, [options])\r\n\r\nSame api as loadFront except it does not support regexps, functions and undefined. See [js-yaml](https://github.com/nodeca/js-yaml) for more information.\r\n\r\n### Options\r\n\r\nThe options object supports the same options available to [js-yaml](https://github.com/nodeca/js-yaml) except adds support for an additional key.\r\n\r\n- `options.contentKeyName`: Specify the object key where the remaining string content after parsing the yaml front-matter will be stored. defaults to `__content`.\r\n\r\n```js\r\nyamlFront.loadFront('Hello World', {\r\n    contentKeyName: 'fileContents' \r\n});\r\n// => { fileContents: \"Hello World\" }\r\n```\r\n","readmeFilename":"README.md","gitHead":"fd1f4bdd1c8abfbda58433cc2399606bfd904b49","bugs":{"url":"https://github.com/dworthen/js-yaml-front-matter/issues"},"homepage":"https://github.com/dworthen/js-yaml-front-matter#readme","_id":"yaml-front-matter@4.0.0-0","_shasum":"cf646775a86ac449b0c20b3ef2a6d5d696793425","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"dworthen","email":"worthend.derek@gmail.com"},"dist":{"shasum":"cf646775a86ac449b0c20b3ef2a6d5d696793425","tarball":"https://registry.npmjs.org/yaml-front-matter/-/yaml-front-matter-4.0.0-0.tgz","fileCount":20,"unpackedSize":206905,"integrity":"sha512-uAv/CVoo1UkRPHRXNb6d0TAXNrwfEUDOIl5/VVnaU+ZWGwnv6iLY+n2rKQOqeCjmvY2H9hbBY0IEjPjIg8T3Jg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICefqk0PN7qgWqjJs9yR2DRfpPF/oTU8pNV7V21mIVFGAiEAyQ3BNaqdPcN+JnG7BWUxV3QXDykGJn62E78syG2zxko="}]},"maintainers":[{"name":"dworthen","email":"worthend.derek@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yaml-front-matter_4.0.0-0_1519760898909_0.7605393328693566"},"_hasShrinkwrap":false},"4.0.0-1":{"author":{"name":"Derek Worthen"},"license":"MIT","name":"yaml-front-matter","description":"yaml front matter for JS. Parse yaml or JSON from the beginning of files.","main":"index.js","module":"src/index.js","version":"4.0.0-1","keywords":["yaml"],"repository":{"type":"git","url":"git+https://github.com/dworthen/js-yaml-front-matter.git"},"dependencies":{"commander":"1.0.0","js-yaml":"^3.10.0"},"devDependencies":{"babel-core":"^6.26.0","babel-loader":"^7.1.3","babel-preset-env":"^1.6.1","browser-sync":"^2.11.1","commander":"^2.14.1","gulp":"^3.9.0","gulp-concat":"^2.6.0","gulp-rename":"^1.2.2","gulp-sourcemaps":"^1.6.0","gulp-uglify":"^1.5.1","http-server":"^0.11.1","mocha":"~1.3.0","should":"0.6.3","standard-version":"^4.3.0","webpack":"^4.0.1","webpack-cli":"^2.0.9"},"bin":{"yaml-front-matter":"bin/js-yaml-front.js"},"scripts":{"test":"mocha -u bdd --reporter spec","start":"npm run build:browser && http-server ./docs -p 8080","release":"standard-version","build":"webpack --mode production","build:browser":"webpack --mode production --env.browser"},"readme":"# Yaml Front Matter\r\n\r\nParses yaml or json at the front of a string. Places the parsed content, plus the rest of the string content, into an object literal.\r\n\r\n[Online Demo](https://dworthen.github.io/js-yaml-front-matter/).\r\n\r\n#### Breaking Changes\r\n\r\nThis readme is for the 4.x branch which introduces breaking changes. View the [changelog](CHANGELOG.md) for more information.\r\n\r\n## Example\r\n\r\nThis\r\n\r\n```yaml\r\n---\r\nname: Derek Worthen\r\nage: young\r\ncontact:\r\n  email: email@domain.com\r\n  address: some location\r\npets:\r\n  - cat\r\n  - dog\r\n  - bat\r\nmatch: !!js/regexp /pattern/gim\r\nrun: !!js/function function() { }\r\n---\r\nSome Other content\r\n```\r\n\r\nbecomes\r\n\r\n```js\r\n{ \r\n    name: 'Derek Worthen',\r\n    age: 'young',\r\n    contact: { email: 'email@domain.com', address: 'some location' },\r\n    pets: [ 'cat', 'dog', 'bat' ],\r\n    match: /pattern/gim,\r\n    run: [Function],\r\n    __content: '\\nSome Other Content' \r\n}\r\n```\r\n\r\nMay also use JSON\r\n\r\n```json\r\n---\r\n{\r\n    \"name\": \"Derek Worthen\",\r\n    \"age\": \"young\",\r\n    \"anArray\": [\"one\",\"two\"],\r\n    \"subObj\":{\"field1\": \"one\"}\r\n}\r\n---\r\nSome content\r\n```\r\n\r\n> __NOTE:__ The `---` are required to denote the start and end of front matter. There must be a newline after the opening `---` and a newline preceding the closing `---`.\r\n\r\n## Install\r\n\r\n#### npm\r\n\r\n```shell\r\n$ npm install yaml-front-matter@next\r\n```\r\n\r\nUse the `-g` flag if you plan on using the command line tool.\r\n\r\n```shell\r\n$ npm install yaml-front-matter -g\r\n```\r\n    \r\n#### Browser\r\n\r\nInclude the client script from [dist/yamlFront.js](dist/yamlFront.js). The library will be exposed as a global, `yamlFront`. The client script for [js-yaml](https://github.com/nodeca/js-yaml) is also required. May need to load espirma for some use cases. See [js-yaml](https://github.com/nodeca/js-yaml) for more information.\r\n\r\n```html\r\n<script src=\"https://unpkg.com/js-yaml@3.10.0/dist/js-yaml.js\"></script>\r\n<script src=\"js-yaml-front-client.min.js\"></script>\r\n<script>\r\n  // parse front matter with yamlFront.loadFront(String);\r\n</script>\r\n```\r\n\r\n## Running the Browser Example\r\n\r\n```shell\r\n$ npm install --dev && npm start\r\n```\r\n\r\nThen visit `localhost:8080`.\r\n\r\n## Building from source\r\n\r\nOutputs client files in `dist/`.\r\n\r\n```shell\r\n$ npm install --dev && npm run build\r\n```\r\n\r\n## Running Tests\r\n\r\n```shell\r\nnpm install --dev && npm test\r\n```\r\n\r\n## Command Line\r\n\r\n```shell\r\nUsage: yaml-front-matter [options] <file>\r\n\r\nOptions:\r\n\r\n-h, --help            output usage information\r\n-V, --version         output the version number\r\n-c, --content [name]  set the property name for the files contents [__content]\r\n```\r\n\r\n## JS-YAML\r\n\r\nYaml front matter wraps [js-yaml](https://github.com/nodeca/js-yaml) to support parsing yaml front-matter.\r\n\r\n## API\r\n\r\n### loadFront(string, [options])\r\n\r\n```js\r\nvar yamlFront = require('yaml-front-matter')\r\n  , input = [\r\n        '---\\npost: title one\\n',\r\n        'anArray:\\n - one\\n - two\\n',\r\n        'subObject:\\n prop1: cool\\n prop2: two',\r\n        '\\nreg: !!js/regexp /pattern/gim',\r\n        '\\nfun: !!js/function function() {  }\\n---\\n',\r\n        'content\\nmore'\r\n    ].join('');\r\n\r\nvar results = yamlFront.loadFront(input);\r\nconsole.log(results);\r\n```\r\n\r\nthe above will produce the following in the console.\r\n\r\n```shell\r\n{ post: 'title one',\r\n  anArray: [ 'one', 'two' ],\r\n  subObject: { obj1: 'cool', obj2: 'two' },\r\n  reg: /pattern/gim,\r\n  fun: [Function],\r\n  __content: '\\ncontent\\nmore' }\r\n```\r\n\r\nThe front-matter is optional.\r\n\r\n```\r\nfrontMatter.loadFront('Hello World');\r\n```\r\n\r\nWill produce\r\n\r\n```js\r\n{ __content: \"Hello World!\" }\r\n```\r\n\r\nContent all together is optional\r\n\r\n```js\r\nfrontMatter.loadFront('');\r\n// will produce { __content: '' }\r\n```\r\n\r\n### safeLoadFront(string, [options])\r\n\r\nSame api as loadFront except it does not support regexps, functions and undefined. See [js-yaml](https://github.com/nodeca/js-yaml) for more information.\r\n\r\n### Options\r\n\r\nThe options object supports the same options available to [js-yaml](https://github.com/nodeca/js-yaml) except adds support for an additional key.\r\n\r\n- `options.contentKeyName`: Specify the object key where the remaining string content after parsing the yaml front-matter will be stored. defaults to `__content`.\r\n\r\n```js\r\nyamlFront.loadFront('Hello World', {\r\n    contentKeyName: 'fileContents' \r\n});\r\n// => { fileContents: \"Hello World\" }\r\n```\r\n","readmeFilename":"README.md","gitHead":"1459c50ef147118c5481632e259d0dc59a7f7ddb","bugs":{"url":"https://github.com/dworthen/js-yaml-front-matter/issues"},"homepage":"https://github.com/dworthen/js-yaml-front-matter#readme","_id":"yaml-front-matter@4.0.0-1","_shasum":"76e3d33b3b09dc1c09c4d7f5dee67f7ea5c27202","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"dworthen","email":"worthend.derek@gmail.com"},"dist":{"shasum":"76e3d33b3b09dc1c09c4d7f5dee67f7ea5c27202","tarball":"https://registry.npmjs.org/yaml-front-matter/-/yaml-front-matter-4.0.0-1.tgz","fileCount":20,"unpackedSize":208141,"integrity":"sha512-mU4YyPODHIPXqYXF9gAYhMd/wuNzlBNArA8g/josXmBWpJPqwCm9PJmoA3YfSldrxQF0f03ifx5TkXUtGvqcCg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDl+LY1K48FtEWS0vaDJR90/98fbNquMuQgL6ljT2vciAiBlVUClDNypIwkZUzg4Oo7Nm5wLP/OdQZkYzyx7vR2ESw=="}]},"maintainers":[{"name":"dworthen","email":"worthend.derek@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yaml-front-matter_4.0.0-1_1519765048588_0.7784328302059589"},"_hasShrinkwrap":false},"4.0.0-2":{"author":{"name":"Derek Worthen"},"license":"MIT","name":"yaml-front-matter","description":"yaml front matter for JS. Parse yaml or JSON from the beginning of files.","main":"index.js","module":"src/index.js","version":"4.0.0-2","keywords":["yaml"],"repository":{"type":"git","url":"git+https://github.com/dworthen/js-yaml-front-matter.git"},"dependencies":{"commander":"1.0.0","js-yaml":"^3.10.0"},"devDependencies":{"babel-core":"^6.26.0","babel-loader":"^7.1.3","babel-preset-env":"^1.6.1","browser-sync":"^2.11.1","commander":"^2.14.1","gulp":"^3.9.0","gulp-concat":"^2.6.0","gulp-rename":"^1.2.2","gulp-sourcemaps":"^1.6.0","gulp-uglify":"^1.5.1","http-server":"^0.11.1","mocha":"~1.3.0","should":"0.6.3","standard-version":"^4.3.0","webpack":"^4.0.1","webpack-cli":"^2.0.9"},"bin":{"yaml-front-matter":"bin/js-yaml-front.js"},"scripts":{"test":"mocha -u bdd --reporter spec","start":"npm run build:browser && http-server ./docs -p 8080","release":"standard-version","build":"webpack --mode production","build:browser":"webpack --mode production --env.browser"},"readme":"# Yaml Front Matter\r\n\r\nParses yaml or json at the front of a string. Places the parsed content, plus the rest of the string content, into an object literal.\r\n\r\n[Online Demo](https://dworthen.github.io/js-yaml-front-matter/).\r\n\r\n#### Breaking Changes\r\n\r\nThis readme is for the 4.x branch which introduces breaking changes. View the [changelog](CHANGELOG.md) for more information.\r\n\r\n[3.x readme](https://github.com/dworthen/js-yaml-front-matter/tree/v3.4.0)\r\n\r\n## Example\r\n\r\nThis\r\n\r\n```yaml\r\n---\r\nname: Derek Worthen\r\nage: young\r\ncontact:\r\n  email: email@domain.com\r\n  address: some location\r\npets:\r\n  - cat\r\n  - dog\r\n  - bat\r\nmatch: !!js/regexp /pattern/gim\r\nrun: !!js/function function() { }\r\n---\r\nSome Other content\r\n```\r\n\r\nbecomes\r\n\r\n```js\r\n{ \r\n    name: 'Derek Worthen',\r\n    age: 'young',\r\n    contact: { email: 'email@domain.com', address: 'some location' },\r\n    pets: [ 'cat', 'dog', 'bat' ],\r\n    match: /pattern/gim,\r\n    run: [Function],\r\n    __content: '\\nSome Other Content' \r\n}\r\n```\r\n\r\nMay also use JSON\r\n\r\n```json\r\n---\r\n{\r\n    \"name\": \"Derek Worthen\",\r\n    \"age\": \"young\",\r\n    \"anArray\": [\"one\",\"two\"],\r\n    \"subObj\":{\"field1\": \"one\"}\r\n}\r\n---\r\nSome content\r\n```\r\n\r\n> __NOTE:__ The `---` are required to denote the start and end of front matter. There must be a newline after the opening `---` and a newline preceding the closing `---`.\r\n\r\n## Install\r\n\r\n#### npm\r\n\r\n```shell\r\n$ npm install yaml-front-matter@next\r\n```\r\n\r\nUse the `-g` flag if you plan on using the command line tool.\r\n\r\n```shell\r\n$ npm install yaml-front-matter -g\r\n```\r\n    \r\n#### Browser\r\n\r\nInclude the client script from [dist/yamlFront.js](dist/yamlFront.js). The library will be exposed as a global, `yamlFront`. The client script for [js-yaml](https://github.com/nodeca/js-yaml) is also required. May need to load espirma for some use cases. See [js-yaml](https://github.com/nodeca/js-yaml) for more information.\r\n\r\n```html\r\n<script src=\"https://unpkg.com/js-yaml@3.10.0/dist/js-yaml.js\"></script>\r\n<script src=\"js-yaml-front-client.min.js\"></script>\r\n<script>\r\n  // parse front matter with yamlFront.loadFront(String);\r\n</script>\r\n```\r\n\r\n## Running the Browser Example\r\n\r\n```shell\r\n$ npm install --dev && npm start\r\n```\r\n\r\nThen visit `localhost:8080`.\r\n\r\n## Building from source\r\n\r\nOutputs client files in `dist/`.\r\n\r\n```shell\r\n$ npm install --dev && npm run build\r\n```\r\n\r\n## Running Tests\r\n\r\n```shell\r\nnpm install --dev && npm test\r\n```\r\n\r\n## Command Line\r\n\r\n```shell\r\nUsage: yaml-front-matter [options] <yaml-front-matter content>\r\n\r\nOptions:\r\n\r\n-h, --help            output usage information\r\n-v, --version         output the version number\r\n-c, --content [name]  set the property name for the files contents [__content]\r\n--pretty              formats json output with spaces. \r\n```\r\n\r\n> **Note** The cli uses `safeLoadFront` and therefore the cli cannot parse yaml containing regexps, functions or undefined values.\r\n\r\n## JS-YAML\r\n\r\nYaml front matter wraps [js-yaml](https://github.com/nodeca/js-yaml) to support parsing yaml front-matter.\r\n\r\n## API\r\n\r\n### loadFront(string, [options])\r\n\r\n```js\r\nvar yamlFront = require('yaml-front-matter')\r\n  , input = [\r\n        '---\\npost: title one\\n',\r\n        'anArray:\\n - one\\n - two\\n',\r\n        'subObject:\\n prop1: cool\\n prop2: two',\r\n        '\\nreg: !!js/regexp /pattern/gim',\r\n        '\\nfun: !!js/function function() {  }\\n---\\n',\r\n        'content\\nmore'\r\n    ].join('');\r\n\r\nvar results = yamlFront.loadFront(input);\r\nconsole.log(results);\r\n```\r\n\r\nthe above will produce the following in the console.\r\n\r\n```shell\r\n{ post: 'title one',\r\n  anArray: [ 'one', 'two' ],\r\n  subObject: { obj1: 'cool', obj2: 'two' },\r\n  reg: /pattern/gim,\r\n  fun: [Function],\r\n  __content: '\\ncontent\\nmore' }\r\n```\r\n\r\nThe front-matter is optional.\r\n\r\n```\r\nfrontMatter.loadFront('Hello World');\r\n```\r\n\r\nWill produce\r\n\r\n```js\r\n{ __content: \"Hello World!\" }\r\n```\r\n\r\nContent all together is optional\r\n\r\n```js\r\nfrontMatter.loadFront('');\r\n// will produce { __content: '' }\r\n```\r\n\r\n### safeLoadFront(string, [options])\r\n\r\nSame api as loadFront except it does not support regexps, functions and undefined. See [js-yaml](https://github.com/nodeca/js-yaml) for more information.\r\n\r\n### Options\r\n\r\nThe options object supports the same options available to [js-yaml](https://github.com/nodeca/js-yaml) except adds support for an additional key.\r\n\r\n- `options.contentKeyName`: Specify the object key where the remaining string content after parsing the yaml front-matter will be stored. defaults to `__content`.\r\n\r\n```js\r\nyamlFront.loadFront('Hello World', {\r\n    contentKeyName: 'fileContents' \r\n});\r\n// => { fileContents: \"Hello World\" }\r\n```\r\n","readmeFilename":"README.md","gitHead":"8271a3f237468c139bf4e89ce8f6024e6e2caf18","bugs":{"url":"https://github.com/dworthen/js-yaml-front-matter/issues"},"homepage":"https://github.com/dworthen/js-yaml-front-matter#readme","_id":"yaml-front-matter@4.0.0-2","_shasum":"9e6cbd54894e479572de6025359961a3bafc9123","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"dworthen","email":"worthend.derek@gmail.com"},"dist":{"shasum":"9e6cbd54894e479572de6025359961a3bafc9123","tarball":"https://registry.npmjs.org/yaml-front-matter/-/yaml-front-matter-4.0.0-2.tgz","fileCount":20,"unpackedSize":208812,"integrity":"sha512-o5TFH6mO52e6TP5IkMYPbghvNRw/Vrhes6J8osXB++UuxmaaSw5bQGa9CqSbWDHdfsLhWrbXViFGFmsuJwHZjA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSuV8J/IdVjaq8bt54YOuRW6+88UGlm6/un/2xdPR9aAIgYn+rlScnIt5VyUPP34OkCnM+DH/7BwD1/o0smWm4JdM="}]},"maintainers":[{"name":"dworthen","email":"worthend.derek@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yaml-front-matter_4.0.0-2_1519767300687_0.0414689148999392"},"_hasShrinkwrap":false},"3.4.1":{"author":{"name":"Derek Worthen"},"license":"MIT","name":"yaml-front-matter","description":"yaml front matter for JS. Parse yaml or JSON from the beginning of files.","version":"3.4.1","keywords":["yaml"],"repository":{"type":"git","url":"git+https://github.com/dworthen/js-yaml-front-matter.git"},"dependencies":{"commander":"1.0.0","js-yaml":"^3.5.2"},"devDependencies":{"browser-sync":"^2.11.1","gulp":"^3.9.0","gulp-concat":"^2.6.0","gulp-rename":"^1.2.2","gulp-sourcemaps":"^1.6.0","gulp-uglify":"^1.5.1","mocha":"~1.3.0","should":"0.6.3"},"bin":{"yaml-front-matter":"bin/js-yaml-front.js"},"scripts":{"test":"mocha -u bdd --reporter spec","start":"gulp serve"},"gitHead":"91969841c34806b02c34966d633e25b442f69387","bugs":{"url":"https://github.com/dworthen/js-yaml-front-matter/issues"},"homepage":"https://github.com/dworthen/js-yaml-front-matter#readme","_id":"yaml-front-matter@3.4.1","_shasum":"e52e84fea6983b93755e9b1564dba989b006b5a5","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"dworthen","email":"worthend.derek@gmail.com"},"dist":{"shasum":"e52e84fea6983b93755e9b1564dba989b006b5a5","tarball":"https://registry.npmjs.org/yaml-front-matter/-/yaml-front-matter-3.4.1.tgz","fileCount":25,"unpackedSize":682693,"integrity":"sha512-/sDeHR8GD6JIJ8j/2h28QsjXS9XsWp2WnjU8RQODri/u6INSEF9Q5w4mZVl0KtXsM1UCBYQhOwTvJKTsnmusBQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDcyatySnREeMaBG38/c0+W9I4BjchXCeTkVEx1QRGZmgIhAOUQMf4+V+gSV7BAliJeN2gh1rRg5q/6guygH1DHzh9l"}]},"maintainers":[{"name":"dworthen","email":"worthend.derek@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yaml-front-matter_3.4.1_1519767582752_0.5329231009382835"},"_hasShrinkwrap":false},"4.0.0-3":{"author":{"name":"Derek Worthen"},"license":"MIT","name":"yaml-front-matter","description":"yaml front matter for JS. Parse yaml or JSON from the beginning of files.","main":"dist/yamlFront.js","module":"src/index.js","version":"4.0.0-3","keywords":["yaml"],"repository":{"type":"git","url":"git+https://github.com/dworthen/js-yaml-front-matter.git"},"dependencies":{"commander":"1.0.0","js-yaml":"^3.10.0"},"devDependencies":{"babel-core":"^6.26.0","babel-loader":"^7.1.3","babel-preset-env":"^1.6.1","browser-sync":"^2.11.1","commander":"^2.14.1","gulp":"^3.9.0","gulp-concat":"^2.6.0","gulp-rename":"^1.2.2","gulp-sourcemaps":"^1.6.0","gulp-uglify":"^1.5.1","http-server":"^0.11.1","mocha":"~1.3.0","should":"0.6.3","standard-version":"^4.3.0","webpack":"^4.0.1","webpack-cli":"^2.0.9"},"bin":{"yaml-front-matter":"bin/js-yaml-front.js"},"scripts":{"test":"mocha -u bdd --reporter spec","start":"npm run build:browser && http-server ./docs -p 8080","release":"standard-version","build":"webpack --mode production","build:browser":"webpack --mode production --env.browser"},"gitHead":"fb5ffb72cd922ad966e3239e142b702dc22448f6","readme":"# Yaml Front Matter\r\n\r\nParses yaml or json at the front of a string. Places the parsed content, plus the rest of the string content, into an object literal.\r\n\r\n[Online Demo](https://dworthen.github.io/js-yaml-front-matter/).\r\n\r\n#### Breaking Changes\r\n\r\nThis readme is for the 4.x branch which introduces breaking changes. View the [changelog](CHANGELOG.md) for more information.\r\n\r\n[3.x readme](https://github.com/dworthen/js-yaml-front-matter/tree/v3.4.0)\r\n\r\n## Example\r\n\r\nThis\r\n\r\n```yaml\r\n---\r\nname: Derek Worthen\r\nage: young\r\ncontact:\r\n  email: email@domain.com\r\n  address: some location\r\npets:\r\n  - cat\r\n  - dog\r\n  - bat\r\nmatch: !!js/regexp /pattern/gim\r\nrun: !!js/function function() { }\r\n---\r\nSome Other content\r\n```\r\n\r\nbecomes\r\n\r\n```js\r\n{ \r\n    name: 'Derek Worthen',\r\n    age: 'young',\r\n    contact: { email: 'email@domain.com', address: 'some location' },\r\n    pets: [ 'cat', 'dog', 'bat' ],\r\n    match: /pattern/gim,\r\n    run: [Function],\r\n    __content: '\\nSome Other Content' \r\n}\r\n```\r\n\r\nMay also use JSON\r\n\r\n```json\r\n---\r\n{\r\n    \"name\": \"Derek Worthen\",\r\n    \"age\": \"young\",\r\n    \"anArray\": [\"one\",\"two\"],\r\n    \"subObj\":{\"field1\": \"one\"}\r\n}\r\n---\r\nSome content\r\n```\r\n\r\n> __NOTE:__ The `---` are required to denote the start and end of front matter. There must be a newline after the opening `---` and a newline preceding the closing `---`.\r\n\r\n## Install\r\n\r\n#### npm\r\n\r\n```shell\r\n$ npm install yaml-front-matter@next\r\n```\r\n\r\nUse the `-g` flag if you plan on using the command line tool.\r\n\r\n```shell\r\n$ npm install yaml-front-matter -g\r\n```\r\n    \r\n#### Browser\r\n\r\nInclude the client script from [dist/yamlFront.js](dist/yamlFront.js). The library will be exposed as a global, `yamlFront`. The client script for [js-yaml](https://github.com/nodeca/js-yaml) is also required. May need to load espirma for some use cases. See [js-yaml](https://github.com/nodeca/js-yaml) for more information.\r\n\r\n```html\r\n<script src=\"https://unpkg.com/js-yaml@3.10.0/dist/js-yaml.js\"></script>\r\n<script src=\"js-yaml-front-client.min.js\"></script>\r\n<script>\r\n  // parse front matter with yamlFront.loadFront(String);\r\n</script>\r\n```\r\n\r\n## Running the Browser Example\r\n\r\n```shell\r\n$ npm install --dev && npm start\r\n```\r\n\r\nThen visit `localhost:8080`.\r\n\r\n## Building from source\r\n\r\nOutputs client files in `dist/`.\r\n\r\n```shell\r\n$ npm install --dev && npm run build\r\n```\r\n\r\n## Running Tests\r\n\r\n```shell\r\nnpm install --dev && npm test\r\n```\r\n\r\n## Command Line\r\n\r\n```shell\r\nUsage: yaml-front-matter [options] <yaml-front-matter content>\r\n\r\nOptions:\r\n\r\n-h, --help            output usage information\r\n-v, --version         output the version number\r\n-c, --content [name]  set the property name for the files contents [__content]\r\n--pretty              formats json output with spaces. \r\n```\r\n\r\n> **Note** The cli uses `safeLoadFront` and therefore the cli cannot parse yaml containing regexps, functions or undefined values.\r\n\r\n## JS-YAML\r\n\r\nYaml front matter wraps [js-yaml](https://github.com/nodeca/js-yaml) to support parsing yaml front-matter.\r\n\r\n## API\r\n\r\n### loadFront(string, [options])\r\n\r\n```js\r\nvar yamlFront = require('yaml-front-matter')\r\n  , input = [\r\n        '---\\npost: title one\\n',\r\n        'anArray:\\n - one\\n - two\\n',\r\n        'subObject:\\n prop1: cool\\n prop2: two',\r\n        '\\nreg: !!js/regexp /pattern/gim',\r\n        '\\nfun: !!js/function function() {  }\\n---\\n',\r\n        'content\\nmore'\r\n    ].join('');\r\n\r\nvar results = yamlFront.loadFront(input);\r\nconsole.log(results);\r\n```\r\n\r\nthe above will produce the following in the console.\r\n\r\n```shell\r\n{ post: 'title one',\r\n  anArray: [ 'one', 'two' ],\r\n  subObject: { obj1: 'cool', obj2: 'two' },\r\n  reg: /pattern/gim,\r\n  fun: [Function],\r\n  __content: '\\ncontent\\nmore' }\r\n```\r\n\r\nThe front-matter is optional.\r\n\r\n```\r\nfrontMatter.loadFront('Hello World');\r\n```\r\n\r\nWill produce\r\n\r\n```js\r\n{ __content: \"Hello World!\" }\r\n```\r\n\r\nContent all together is optional\r\n\r\n```js\r\nfrontMatter.loadFront('');\r\n// will produce { __content: '' }\r\n```\r\n\r\n### safeLoadFront(string, [options])\r\n\r\nSame api as loadFront except it does not support regexps, functions and undefined. See [js-yaml](https://github.com/nodeca/js-yaml) for more information.\r\n\r\n### Options\r\n\r\nThe options object supports the same options available to [js-yaml](https://github.com/nodeca/js-yaml) except adds support for an additional key.\r\n\r\n- `options.contentKeyName`: Specify the object key where the remaining string content after parsing the yaml front-matter will be stored. defaults to `__content`.\r\n\r\n```js\r\nyamlFront.loadFront('Hello World', {\r\n    contentKeyName: 'fileContents' \r\n});\r\n// => { fileContents: \"Hello World\" }\r\n```\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/dworthen/js-yaml-front-matter/issues"},"homepage":"https://github.com/dworthen/js-yaml-front-matter#readme","_id":"yaml-front-matter@4.0.0-3","_shasum":"effcba11d467fda9def67961ef2fe229b957394d","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"dworthen","email":"worthend.derek@gmail.com"},"dist":{"shasum":"effcba11d467fda9def67961ef2fe229b957394d","tarball":"https://registry.npmjs.org/yaml-front-matter/-/yaml-front-matter-4.0.0-3.tgz","fileCount":20,"unpackedSize":209143,"integrity":"sha512-70iTU/34PDEiKTSe+jLeL4kY+uBbnPEJaKbHVWZZac16OJySWJ3vu5P9+beENdFJTd0ppprJGzNFmBmo7ACj8A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBvayUClnj8fFvoeJ0fEaFZFDeDLOMnQUz+Q3oI/Ek/DAiEA7hP91bBfRQcZfTzi3jNOP+h5+yq31mLP/Y2EbwMOFA0="}]},"maintainers":[{"name":"dworthen","email":"worthend.derek@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yaml-front-matter_4.0.0-3_1519772477820_0.8715528862989672"},"_hasShrinkwrap":false},"4.0.0-4":{"author":{"name":"Derek Worthen"},"license":"MIT","name":"yaml-front-matter","description":"yaml front matter for JS. Parse yaml or JSON from the beginning of files.","main":"dist/yamlFront.js","module":"src/index.js","version":"4.0.0-4","keywords":["yaml"],"repository":{"type":"git","url":"git+https://github.com/dworthen/js-yaml-front-matter.git"},"dependencies":{"commander":"1.0.0","js-yaml":"^3.10.0"},"devDependencies":{"babel-core":"^6.26.0","babel-loader":"^7.1.3","babel-preset-env":"^1.6.1","browser-sync":"^2.11.1","commander":"^2.14.1","gulp":"^3.9.0","gulp-concat":"^2.6.0","gulp-rename":"^1.2.2","gulp-sourcemaps":"^1.6.0","gulp-uglify":"^1.5.1","http-server":"^0.11.1","mocha":"~1.3.0","should":"0.6.3","standard-version":"^4.3.0","webpack":"^4.0.1","webpack-cli":"^2.0.9"},"bin":{"yaml-front-matter":"bin/js-yaml-front.js"},"scripts":{"test":"npm run build && mocha -u bdd --reporter spec","start":"npm run build:browser && http-server ./docs -p 8080","release":"standard-version","build":"webpack --mode production","build:browser":"webpack --mode production --env.browser"},"gitHead":"fa1ae4e296e4cd80ddd24f7cdf862021e11c733b","readme":"# Yaml Front Matter\r\n\r\nParses yaml or json at the front of a string. Places the parsed content, plus the rest of the string content, into an object literal.\r\n\r\n[Online Demo](https://dworthen.github.io/js-yaml-front-matter/).\r\n\r\n#### Breaking Changes\r\n\r\nThis readme is for the 4.x branch which introduces breaking changes. View the [changelog](CHANGELOG.md) for more information.\r\n\r\n[3.x readme](https://github.com/dworthen/js-yaml-front-matter/tree/v3.4.0)\r\n\r\n## Example\r\n\r\nThis\r\n\r\n```yaml\r\n---\r\nname: Derek Worthen\r\nage: young\r\ncontact:\r\n  email: email@domain.com\r\n  address: some location\r\npets:\r\n  - cat\r\n  - dog\r\n  - bat\r\nmatch: !!js/regexp /pattern/gim\r\nrun: !!js/function function() { }\r\n---\r\nSome Other content\r\n```\r\n\r\nbecomes\r\n\r\n```js\r\n{ \r\n    name: 'Derek Worthen',\r\n    age: 'young',\r\n    contact: { email: 'email@domain.com', address: 'some location' },\r\n    pets: [ 'cat', 'dog', 'bat' ],\r\n    match: /pattern/gim,\r\n    run: [Function],\r\n    __content: '\\nSome Other Content' \r\n}\r\n```\r\n\r\nMay also use JSON\r\n\r\n```json\r\n---\r\n{\r\n    \"name\": \"Derek Worthen\",\r\n    \"age\": \"young\",\r\n    \"anArray\": [\"one\",\"two\"],\r\n    \"subObj\":{\"field1\": \"one\"}\r\n}\r\n---\r\nSome content\r\n```\r\n\r\n> __NOTE:__ The `---` are required to denote the start and end of front matter. There must be a newline after the opening `---` and a newline preceding the closing `---`.\r\n\r\n## Install\r\n\r\n#### npm\r\n\r\n```shell\r\n$ npm install yaml-front-matter@next\r\n```\r\n\r\nUse the `-g` flag if you plan on using the command line tool.\r\n\r\n```shell\r\n$ npm install yaml-front-matter -g\r\n```\r\n    \r\n#### Browser\r\n\r\nInclude the client script from [dist/yamlFront.js](dist/yamlFront.js). The library will be exposed as a global, `yamlFront`. The client script for [js-yaml](https://github.com/nodeca/js-yaml) is also required. May need to load espirma for some use cases. See [js-yaml](https://github.com/nodeca/js-yaml) for more information.\r\n\r\n```html\r\n<script src=\"https://unpkg.com/js-yaml@3.10.0/dist/js-yaml.js\"></script>\r\n<script src=\"js-yaml-front-client.min.js\"></script>\r\n<script>\r\n  // parse front matter with yamlFront.loadFront(String);\r\n</script>\r\n```\r\n\r\n## Running the Browser Example\r\n\r\n```shell\r\n$ npm install --dev && npm start\r\n```\r\n\r\nThen visit `localhost:8080`.\r\n\r\n## Building from source\r\n\r\nOutputs client files in `dist/`.\r\n\r\n```shell\r\n$ npm install --dev && npm run build\r\n```\r\n\r\n## Running Tests\r\n\r\n```shell\r\nnpm install --dev && npm test\r\n```\r\n\r\n## Command Line\r\n\r\n```shell\r\nUsage: yaml-front-matter [options] <yaml-front-matter content>\r\n\r\nOptions:\r\n\r\n-h, --help            output usage information\r\n-v, --version         output the version number\r\n-c, --content [name]  set the property name for the files contents [__content]\r\n--pretty              formats json output with spaces. \r\n```\r\n\r\n> **Note** The cli uses `safeLoadFront` and therefore the cli cannot parse yaml containing regexps, functions or undefined values.\r\n\r\n## JS-YAML\r\n\r\nYaml front matter wraps [js-yaml](https://github.com/nodeca/js-yaml) to support parsing yaml front-matter.\r\n\r\n## API\r\n\r\n### loadFront(string, [options])\r\n\r\n```js\r\nvar yamlFront = require('yaml-front-matter')\r\n  , input = [\r\n        '---\\npost: title one\\n',\r\n        'anArray:\\n - one\\n - two\\n',\r\n        'subObject:\\n prop1: cool\\n prop2: two',\r\n        '\\nreg: !!js/regexp /pattern/gim',\r\n        '\\nfun: !!js/function function() {  }\\n---\\n',\r\n        'content\\nmore'\r\n    ].join('');\r\n\r\nvar results = yamlFront.loadFront(input);\r\nconsole.log(results);\r\n```\r\n\r\nthe above will produce the following in the console.\r\n\r\n```shell\r\n{ post: 'title one',\r\n  anArray: [ 'one', 'two' ],\r\n  subObject: { obj1: 'cool', obj2: 'two' },\r\n  reg: /pattern/gim,\r\n  fun: [Function],\r\n  __content: '\\ncontent\\nmore' }\r\n```\r\n\r\nThe front-matter is optional.\r\n\r\n```\r\nfrontMatter.loadFront('Hello World');\r\n```\r\n\r\nWill produce\r\n\r\n```js\r\n{ __content: \"Hello World!\" }\r\n```\r\n\r\nContent all together is optional\r\n\r\n```js\r\nfrontMatter.loadFront('');\r\n// will produce { __content: '' }\r\n```\r\n\r\n### safeLoadFront(string, [options])\r\n\r\nSame api as loadFront except it does not support regexps, functions and undefined. See [js-yaml](https://github.com/nodeca/js-yaml) for more information.\r\n\r\n### Options\r\n\r\nThe options object supports the same options available to [js-yaml](https://github.com/nodeca/js-yaml) except adds support for an additional key.\r\n\r\n- `options.contentKeyName`: Specify the object key where the remaining string content after parsing the yaml front-matter will be stored. defaults to `__content`.\r\n\r\n```js\r\nyamlFront.loadFront('Hello World', {\r\n    contentKeyName: 'fileContents' \r\n});\r\n// => { fileContents: \"Hello World\" }\r\n```\r\n","readmeFilename":"README.md","bugs":{"url":"https://github.com/dworthen/js-yaml-front-matter/issues"},"homepage":"https://github.com/dworthen/js-yaml-front-matter#readme","_id":"yaml-front-matter@4.0.0-4","_shasum":"8c285d972b7a8c57b782a59f1c7fa83ac87a2683","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"dworthen","email":"worthend.derek@gmail.com"},"dist":{"shasum":"8c285d972b7a8c57b782a59f1c7fa83ac87a2683","tarball":"https://registry.npmjs.org/yaml-front-matter/-/yaml-front-matter-4.0.0-4.tgz","fileCount":21,"unpackedSize":213813,"integrity":"sha512-2IUXpHKd/qfajhXPCb/l5w1sldffG7cmz9G2poycA6GPWVnuaCgotfEVob20653qLwSrjFyaUEEPQ8gwNwNmyQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDcA2Bj0A6ueLnLBkuqE0Fqgya8kyJFpo6mKPuiLnVB/QIgF5FV1cjgfYfr5vgJgh2sHxmExlSr7IXAwkexAweFwvg="}]},"maintainers":[{"name":"dworthen","email":"worthend.derek@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yaml-front-matter_4.0.0-4_1519831497639_0.6145865371210353"},"_hasShrinkwrap":false},"4.0.0":{"author":{"name":"Derek Worthen"},"license":"MIT","name":"yaml-front-matter","description":"yaml front matter for JS. Parse yaml or JSON from the beginning of files.","main":"dist/yamlFront.js","module":"src/index.js","version":"4.0.0","keywords":["yaml","front matter","json"],"repository":{"type":"git","url":"git+https://github.com/dworthen/js-yaml-front-matter.git"},"dependencies":{"commander":"1.0.0","js-yaml":"^3.10.0"},"devDependencies":{"babel-core":"^6.26.0","babel-loader":"^7.1.3","babel-preset-env":"^1.6.1","browser-sync":"^2.11.1","commander":"^2.14.1","gulp":"^3.9.0","gulp-concat":"^2.6.0","gulp-rename":"^1.2.2","gulp-sourcemaps":"^1.6.0","gulp-uglify":"^1.5.1","http-server":"^0.11.1","mocha":"~1.3.0","should":"0.6.3","standard-version":"^4.3.0","webpack":"^4.0.1","webpack-cli":"^2.0.9"},"bin":{"yaml-front-matter":"bin/js-yaml-front.js"},"scripts":{"test":"npm run build && mocha -u bdd --reporter spec","start":"npm run build:browser && http-server ./docs -p 8080","release":"standard-version","build":"webpack --mode production","build:browser":"webpack --mode production --env.browser"},"gitHead":"0f9c1d8bf99664760f645f6e6846cfb7abbc912e","bugs":{"url":"https://github.com/dworthen/js-yaml-front-matter/issues"},"homepage":"https://github.com/dworthen/js-yaml-front-matter#readme","_id":"yaml-front-matter@4.0.0","_shasum":"11c378c54eac3061a82cbaf693a69b4e4c44f484","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.9.4","_npmUser":{"name":"dworthen","email":"worthend.derek@gmail.com"},"dist":{"shasum":"11c378c54eac3061a82cbaf693a69b4e4c44f484","tarball":"https://registry.npmjs.org/yaml-front-matter/-/yaml-front-matter-4.0.0.tgz","fileCount":21,"unpackedSize":214475,"integrity":"sha512-oGib/s4xA3URuvjeUBi6JjBYgNOCvSHp0hqmWuIc0sPrOaqxHwTMTJWQTt104mFmbEhinWJw08TrXPmZR+fduw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFCgylL6yCpEp739fjYeu5wjkt8tdOeYUrz4YQ2JP9ZGAiEAmOxsaHIVsXbo1amFqh7YBmVYgNg4VuWhx9Qbjn3hYLs="}]},"maintainers":[{"name":"dworthen","email":"worthend.derek@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yaml-front-matter_4.0.0_1520620942018_0.7039663853267044"},"_hasShrinkwrap":false},"4.1.0":{"author":{"name":"Derek Worthen"},"license":"MIT","name":"yaml-front-matter","description":"yaml front matter for JS. Parse yaml or JSON from the beginning of files.","main":"dist/yamlFront.js","module":"src/index.js","version":"4.1.0","keywords":["yaml","front matter","json"],"repository":{"type":"git","url":"git+https://github.com/dworthen/js-yaml-front-matter.git"},"dependencies":{"commander":"^2.14.1","js-yaml":"^3.10.0"},"devDependencies":{"@babel/core":"^7.7.7","@babel/preset-env":"^7.7.7","babel-loader":"^8.0.6","http-server":"^0.11.1","mocha":"^6.2.2","should":"^13.2.3","standard-version":"^7.0.1","webpack":"^4.41.4","webpack-cli":"^3.3.10"},"bin":{"yaml-front-matter":"bin/js-yaml-front.js"},"scripts":{"test":"npm run build && mocha -u bdd --reporter spec","start":"npm run build:browser && http-server ./docs -p 8080","release":"standard-version","build":"webpack --mode production","build:browser":"webpack --mode production --env.browser"},"gitHead":"926eb2a41cd3a6d8c12967e6bcdc7dfcfb3f811a","bugs":{"url":"https://github.com/dworthen/js-yaml-front-matter/issues"},"homepage":"https://github.com/dworthen/js-yaml-front-matter#readme","_id":"yaml-front-matter@4.1.0","_nodeVersion":"12.14.0","_npmVersion":"6.13.4","dist":{"integrity":"sha512-E2NKXUe8Amsf3kyLDK48c2gvnfom0Yj3m7455iVVg+G5UbX66V5iqFSpEUkQ+A3iJCKIz+mvAbkN7BQ+N0wiLA==","shasum":"218da823c2539901a441a041fcf7092c48ec1595","tarball":"https://registry.npmjs.org/yaml-front-matter/-/yaml-front-matter-4.1.0.tgz","fileCount":20,"unpackedSize":219945,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeAoWqCRA9TVsSAnZWagAAgQ4P/RPXfmp2SPCRFuih9Z9e\n0hsbUjLg27208M1EACJmdIsNz8zy488VAv84mZn8B1WhADsJlEIfc3yR1WhJ\nBq+89CJwsxkroYqNJONTmEBygT7xlfqOoQrRBs/zvwjgu49ZLunERarp+6XY\nNhjtuj4U+tMxEkn9XU4DfJbjF6c8BNLt/o8VL9GF1KH5yAK/d2TXHufbztS8\nMid38uG2TKQtBZTF056sfw6F56FrdK7CvQZletPJ8ggOPtjUKMsVvLhlPUYZ\ndnc3UtdNOXcr6IWg/GfVtah55CGXQ5X1AH15xzOlDUDUqCaGXPh7ZguH0+R7\nNZM5GWlVL23uO18a44RxNpSYJOoeO6b7qa++tKOFBnthZzch29W4Gapv9PQD\nJhZdj5/6XmC5Od9NwkP39KYIap5eX7q1azerSoAt0RXWYOahA3NSH6ymvs5f\nkmUHt0fK11buvmfGp601tNaO2WdhZc7g5v62rB3azdUw7/rIdSNFnTBizF5p\n0d5YATe+PPPG1sTFEeJrZtD8UmRAXB2NbLaAQk9P+40VHOlkeT8rW68HTpCA\nSY25FuH7oQXq12bPYw58lcmJeS4ypMYHHmGmis6ZSN2GcMzX7e/c6+M57oAr\nwRVR+usVYlKK/ZK5awqXbXlP8NLQbvPkFp93JzgNUxNi+VW+C/t6Gky7J1CE\nkh6X\r\n=WNME\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC/AzDvhQ2+yO/I6FfAgCcdknKrxy25afBpWVhMUVD/GAiAdez9nEHFd9mNwd+f8sPdYATs0AvJmX+zK5ghL5WLtvA=="}]},"maintainers":[{"name":"dworthen","email":"worthend.derek@gmail.com"}],"_npmUser":{"name":"dworthen","email":"worthend.derek@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yaml-front-matter_4.1.0_1577223594459_0.7458096197471511"},"_hasShrinkwrap":false},"4.1.1":{"author":{"name":"Derek Worthen"},"license":"MIT","name":"yaml-front-matter","description":"yaml front matter for JS. Parse yaml or JSON from the beginning of files.","main":"dist/yamlFront.js","module":"src/index.js","version":"4.1.1","keywords":["yaml","front matter","json"],"repository":{"type":"git","url":"git+https://github.com/dworthen/js-yaml-front-matter.git"},"dependencies":{"commander":"^6.2.0","js-yaml":"^3.14.1"},"devDependencies":{"@babel/core":"^7.12.10","@babel/preset-env":"^7.12.10","babel-loader":"^8.2.2","mocha":"^8.2.1","should":"^13.2.3","standard-version":"^9.0.0","webpack":"^4.44.2","webpack-cli":"^4.2.0"},"bin":{"yaml-front-matter":"bin/js-yaml-front.js"},"scripts":{"test":"npm run build && mocha -u bdd --reporter spec","start":"npm run build:browser && http-server ./docs -p 8080","release":"standard-version","build":"webpack --mode production","build:browser":"webpack --mode production --env.browser"},"gitHead":"b26f02d07eacdf5b84fc4a365bcfb48ae4ba0d4b","bugs":{"url":"https://github.com/dworthen/js-yaml-front-matter/issues"},"homepage":"https://github.com/dworthen/js-yaml-front-matter#readme","_id":"yaml-front-matter@4.1.1","_nodeVersion":"12.18.0","_npmVersion":"6.14.4","dist":{"integrity":"sha512-ULGbghCLsN8Hs8vfExlqrJIe8Hl2TUjD7/zsIGMP8U+dgRXEsDXk4yydxeZJgdGiimP1XB7zhmhOB4/HyfqOyQ==","shasum":"66eaa9a998fc3dd723708c73aa8e06e79cac91c9","tarball":"https://registry.npmjs.org/yaml-front-matter/-/yaml-front-matter-4.1.1.tgz","fileCount":20,"unpackedSize":213963,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf1ZSbCRA9TVsSAnZWagAA1JQQAJ7S9xqcuc0Wc0AKaWEy\n2ZCX8PP2jDYKN7J5iQIDCiD6MF8frVzxIU3jn3gisj93C7Zy9dUMiokRVaXf\nBanYhnc7c/np/t7PAogaFpKDFuSo3DQqCwl6B3HwCzotJtK9e5RDmBDbiq0P\n0pkTdSSS9q2VmgyNa3H7OXoaMgUxWty+Ky8ewyvHemOfFxGp2e1lFspx1xCc\nP2dPVv9GlT1VT/3Q6Be0xP1a8SRP/aMcLyBBZLGpGMypvLiQ3ZWk/vKB6mPK\nYANNXD0grj2AzWGzbbEG13y8btfzT+hKgUMdKxCG6j6psaPuUdTDhMDlusBK\niDFPxgHlEC4G3znSdSK9vo8pkSNMLiuTcgcB+o5Cg3Iu1Iioze1qUCv7YtLL\n8YVJvGdH5/XuZOEIp4Qo5YYwvqqL7GriGbAxnwX3tUMJFlZdySlDgDtnyeqd\nvz1Pf+MfaCvohL6Xbh4uHXDR+OZctlaG32kOAMn7IbO+4sQUyM1aR/3Xp/vF\nvRsh9+gDF+tKN42Ni+FEfm6gYjAey9Jt+bOhjruJRG4vlpISJh8ubHRJEcSi\nTMCSgZxPC9ACOEeG24ATA3p1CP+YjbnN4WuSkWnI1ugMnxVF2nU4c9KrgtYK\nPNYD0Qst1Kzrt3UpXlDf+jdNZfgZNUNLh2Y86OH4OyAZFJG+8PQ9uvlolEwi\nqsdd\r\n=FzWh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSJjR/zqxrmNaRij8iVi9JtESgrep0WzMeME8Au+8yZgIgHm/8tKe6s8bSUo8asEPuyBiI54hTFgn0V501qlSBz74="}]},"_npmUser":{"name":"dworthen","email":"worthend.derek@gmail.com"},"directories":{},"maintainers":[{"name":"dworthen","email":"worthend.derek@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yaml-front-matter_4.1.1_1607832730696_0.351214502504241"},"_hasShrinkwrap":false}},"readme":"# Yaml Front Matter\n\nParses yaml or json at the front of a string. Places the parsed content, plus the rest of the string content, into an object literal.\n\n[Online Demo](https://dworthen.github.io/js-yaml-front-matter/).\n\n#### Breaking Changes\n\nThis readme is for the 4.x release, which introduces breaking changes. View the [changelog](CHANGELOG.md) for more information.\n\n[3.x readme](https://github.com/dworthen/js-yaml-front-matter/tree/v3.4.0)\n\n## Example\n\nThis\n\n```yaml\n---\nname: Derek Worthen\nage: 127\ncontact:\n  email: email@domain.com\n  address: some location\npets:\n  - cat\n  - dog\n  - bat\nmatch: !!js/regexp /pattern/gim\nrun: !!js/function function() { }\n---\nSome Other content\n```\n\n```js\nvar fs = require('fs');\nvar yamlFront = require('yaml-front-matter');\n\nfs.readFile('./some/file.txt', 'utf8', function(fileContents) {\n    console.log(yamlFront.loadFront(fileContents));\n});\n\n```\n\noutputs\n\n```js\n{ \n    name: 'Derek Worthen',\n    age: 127,\n    contact: { email: 'email@domain.com', address: 'some location' },\n    pets: [ 'cat', 'dog', 'bat' ],\n    match: /pattern/gim,\n    run: [Function],\n    __content: '\\nSome Other Content' \n}\n```\n\nMay also use JSON\n\n```json\n---\n{\n    \"name\": \"Derek Worthen\",\n    \"age\": \"young\",\n    \"anArray\": [\"one\",\"two\"],\n    \"subObj\":{\"field1\": \"one\"}\n}\n---\nSome content\n```\n\n> __NOTE:__ The `---` are required to denote the start and end of front matter. There must be a newline after the opening `---` and a newline preceding the closing `---`.\n\n## Install\n\n### npm\n\n```shell\n$ npm install yaml-front-matter\n```\n\nUse the `-g` flag if you plan on using the command line tool.\n\n```shell\n$ npm install yaml-front-matter -g\n```\n\n### Node or client with module bundler (webpack or browsify)\n\n```js\nvar yamlFront = require('yaml-front-matter');\n```\n    \n### Browser Bundle\n\nThe [dist/yamlFront.js](dist/yamlFront.js) client script will expose the yaml-front-matter library as a global, `yamlFront`. The client script for [js-yaml](https://github.com/nodeca/js-yaml) is also required. May need to load espirma for some use cases. See [js-yaml](https://github.com/nodeca/js-yaml) for more information.\n\n```html\n<script src=\"https://unpkg.com/js-yaml@3.10.0/dist/js-yaml.js\"></script>\n<script src=\"yamlFront.js\"></script>\n<script>\n  // parse front matter with yamlFront.loadFront(String);\n</script>\n```\n\n> **Note**: yaml-front-matter is delivered as a umd package so it should work within commonjs, amd and browser (as a global) environments.\n\n## Running Browser Example\n\n```shell\n$ npm install --dev && npm start\n```\n\nThen visit `localhost:8080`.\n\n## Building from source\n\nOutputs build files to `dist/`.\n\n```shell\n$ npm install --dev && npm run build\n```\n\n## Running Tests\n\n```shell\nnpm install --dev && npm test\n```\n\n## Command Line\n\n```shell\nUsage: yaml-front-matter [options] <yaml-front-matter content>\n\nOptions:\n\n-h, --help            output usage information\n-v, --version         output the version number\n-c, --content [name]  set the property name for the files contents [__content]\n--pretty              formats json output with spaces. \n```\n\n> **Note** The cli uses `safeLoadFront` and therefore will not parse yaml containing regexps, functions or undefined values.\n\n### Example\n\n```shell\n# Piping content from one file, through yaml parser and into another file\ncat ./some/file.txt | yaml-front-matter > output.txt\n```\n\n## JS-YAML\n\nYaml front matter wraps [js-yaml](https://github.com/nodeca/js-yaml) to support parsing yaml front-matter.\n\n## API\n\n### loadFront(string, [options])\n\n```js\nvar input = [\n        '---\\npost: title one\\n',\n        'anArray:\\n - one\\n - two\\n',\n        'subObject:\\n prop1: cool\\n prop2: two',\n        '\\nreg: !!js/regexp /pattern/gim',\n        '\\nfun: !!js/function function() {  }\\n---\\n',\n        'content\\nmore'\n    ].join('');\n\nvar results = yamlFront.loadFront(input);\nconsole.log(results);\n```\n\noutputs\n\n```shell\n{ post: 'title one',\n  anArray: [ 'one', 'two' ],\n  subObject: { obj1: 'cool', obj2: 'two' },\n  reg: /pattern/gim,\n  fun: [Function],\n  __content: '\\ncontent\\nmore' }\n```\n\nFront-matter is optional.\n\n```js\nyamlFront.loadFront('Hello World');\n// => { __content: \"Hello World!\" }\n```\n\nContent is optional\n\n```js\nyamlFront.loadFront('');\n// => { __content: '' }\n```\n\n### safeLoadFront(string, [options])\n\nSame api as loadFront except it does not support regexps, functions or undefined. See [js-yaml](https://github.com/nodeca/js-yaml) for more information.\n\n### Options\n\nThe options object supports the same options available to [js-yaml](https://github.com/nodeca/js-yaml) and adds support for an additional key.\n\n- `options.contentKeyName`: Specify the object key where to store content not parsed by yaml-front-matter. defaults to `__content`.\n\n```js\nyamlFront.loadFront('Hello World', {\n    contentKeyName: 'fileContents' \n});\n// => { fileContents: \"Hello World\" }\n```\n\n","maintainers":[{"name":"dworthen","email":"worthend.derek@gmail.com"}],"time":{"modified":"2022-06-29T06:48:04.070Z","created":"2012-07-11T03:48:11.011Z","1.0.1":"2012-10-15T05:17:31.488Z","1.0.2":"2012-10-15T05:18:37.951Z","1.0.3":"2013-02-05T03:36:26.706Z","2.1.0":"2013-08-31T17:38:07.884Z","2.1.1":"2013-10-26T15:43:11.774Z","2.1.11":"2013-10-26T15:44:24.614Z","2.2.0":"2014-02-17T06:31:13.270Z","3.0.0":"2014-02-18T02:06:10.063Z","3.0.1":"2014-02-28T20:18:11.853Z","3.2.3":"2014-12-14T00:36:27.855Z","3.3.0":"2016-01-30T01:41:30.514Z","3.4.0":"2016-02-17T22:42:23.161Z","4.0.0-0":"2018-02-27T19:48:19.011Z","4.0.0-1":"2018-02-27T20:57:28.679Z","4.0.0-2":"2018-02-27T21:35:00.762Z","3.4.1":"2018-02-27T21:39:42.893Z","4.0.0-3":"2018-02-27T23:01:18.043Z","4.0.0-4":"2018-02-28T15:24:57.725Z","4.0.0":"2018-03-09T18:42:22.099Z","4.1.0":"2019-12-24T21:39:54.551Z","4.1.1":"2020-12-13T04:12:10.891Z"},"author":{"name":"Derek Worthen"},"repository":{"type":"git","url":"git+https://github.com/dworthen/js-yaml-front-matter.git"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/dworthen/js-yaml-front-matter/issues"},"users":{"tunnckocore":true,"clintonhalpin":true,"geekwen":true,"gbas":true},"homepage":"https://github.com/dworthen/js-yaml-front-matter#readme","keywords":["yaml","front matter","json"],"license":"MIT"}