{"_id":"@boeckmt/metalsmith-json-insteadof-md","_rev":"4-dc85865f6558a48b3e6584c83006f4e6","name":"@boeckmt/metalsmith-json-insteadof-md","dist-tags":{"latest":"1.0.5"},"versions":{"1.0.2":{"name":"@boeckmt/metalsmith-json-insteadof-md","description":"A Metalsmith plugin to use JSON files in addition to or instead of markdown files.","repository":{"type":"git","url":"git://github.com/boeckMt/metalsmith-json-insteadof-md.git"},"author":{"name":"boeckmt","url":"https://boeckmt.github.io/"},"version":"1.0.2","license":"MIT","main":"lib/index.js","scripts":{"pretest":"eslint --fix .","test":"mocha test","preversion":"npm test","postversion":"git push && git push --tags && npm publish"},"dependencies":{"debug":"^4.1.1"},"devDependencies":{"assert-dir-equal":"^1.1.0","eslint":"^7.6.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","metalsmith":"^2.3.0","metalsmith-markdown":"^1.3.0","mocha":"^8.1.1","prettier":"^2.0.5"},"gitHead":"69638a0e7c8a69ee4f08a85c9e8e78a3a6f917ed","bugs":{"url":"https://github.com/boeckMt/metalsmith-json-insteadof-md/issues"},"homepage":"https://github.com/boeckMt/metalsmith-json-insteadof-md#readme","_id":"@boeckmt/metalsmith-json-insteadof-md@1.0.2","_nodeVersion":"12.18.1","_npmVersion":"6.14.5","dist":{"integrity":"sha512-Ca9kVVL0JrHNu8zMFck4FRAGHJZohwsFPew/LmBYtC0JgH3SF7dv+eTyS7nEWCGjtdqjdGfk8qO8TXVMwWfxHw==","shasum":"d10eef6a1b715329ddb4d4fd4e94118ca38b81c8","tarball":"https://registry.npmjs.org/@boeckmt/metalsmith-json-insteadof-md/-/metalsmith-json-insteadof-md-1.0.2.tgz","fileCount":21,"unpackedSize":10073,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMVBGCRA9TVsSAnZWagAATmMP/1wrGRmxtWQ8/gsvBaJd\ngkhbELtmTsdN9TdrjZPd0gh6ZQynTh+hyBmgWAuZjb+X2yZCrwNsD91CzWDy\nkon5GVHnutTMrXW1YKEhCqKBPInuJ3Zv3FegkddCKETYevzLYNYmKa1ZbKBE\nUrtBMmOf6aYaeJV4vyzjvHyuHML4btwDi1kyJTjc0kqgQNpMwWY2eB1HLItM\nRaSGskmuwPyb9f34ExcHUBIwDlajIOFqzIAerzZtsEVcEuf9+Dj4YEvaNHMJ\n9AvMoeXDn2R8h142/tz0IQkzUnW+z7z+l0JROO8qh2l4WPrJdlSE7ekSBNQm\nOK0LfbZYNltZ3ftUEcA5go7ap2ZdxCyFLG3DdTgb2XPrrw//cB+5Tzh5iuss\nUEKimogz4pr1IF//1PWl/DeyP3LbcB1w6TY0lmLYagot2x/UL1bgf4zZbAnj\n/9h9PZdtyCNfKo3kiHubYlK6WeEWG2BcPRlNiP5tSk76iANv+AsEkfvf68ER\nOXVQC3QegYiL6p2ZHtqWoehIq+sW5mAfAqjNSvYeLRjec49EdBOijIDdwJsM\nq23r/jOSB1IKaqFrPqZ62/iD+CcdU5BRkbDpsEDe4UYu6UMurCLX6Iv8TK6L\nfJ10GaOdBFLqDo+m0mXS+QOOWSxYOpgOMF4B55myvDzpULcSpXjTNXzscGL2\nH7oH\r\n=LKkV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC1FLBzxMEhDGiXm0MpEZhJ+u+SY9R1fx2PTjSKncQwUgIgDg+EbDWZ9f0WwtF6Xbd+1TScAw/IheefXEWsxo44pxY="}]},"maintainers":[{"name":"boeckmtorg","email":"bbmatdd@gmail.com"}],"_npmUser":{"name":"boeckmtorg","email":"bbmatdd@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/metalsmith-json-insteadof-md_1.0.2_1597067334518_0.7780335638037594"},"_hasShrinkwrap":false},"1.0.3":{"name":"@boeckmt/metalsmith-json-insteadof-md","description":"A Metalsmith plugin to use JSON files in addition to or instead of markdown files.","repository":{"type":"git","url":"git://github.com/boeckMt/metalsmith-json-insteadof-md.git"},"author":{"name":"boeckmt","url":"https://boeckmt.github.io/"},"version":"1.0.3","license":"MIT","main":"lib/index.js","scripts":{"pretest":"eslint --fix .","test":"mocha test","preversion":"npm test","postversion":"git push && git push --tags && npm publish"},"dependencies":{"debug":"^4.1.1"},"devDependencies":{"assert-dir-equal":"^1.1.0","eslint":"^7.6.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","metalsmith":"^2.3.0","metalsmith-markdown":"^1.3.0","mocha":"^8.1.1","prettier":"^2.0.5"},"gitHead":"b8766f343e831eefa915d88b2254545f75f42bdc","bugs":{"url":"https://github.com/boeckMt/metalsmith-json-insteadof-md/issues"},"homepage":"https://github.com/boeckMt/metalsmith-json-insteadof-md#readme","_id":"@boeckmt/metalsmith-json-insteadof-md@1.0.3","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-CotQco38ax/r3uT71hbo+liv7J86782XcehZXh7QQKhuztebdU98lpz3OgL2zwZIBtfQd3SkkJqkACskAnPT9A==","shasum":"1d24a0b4a3c1338c40bd555b829cf59a3df3ff38","tarball":"https://registry.npmjs.org/@boeckmt/metalsmith-json-insteadof-md/-/metalsmith-json-insteadof-md-1.0.3.tgz","fileCount":21,"unpackedSize":10183,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfMVkjCRA9TVsSAnZWagAA55QP/RqVv9QN5Gk2oHx1y7VF\nFbkFTRdLxYdRNQCoe0eRuHBRVBSrjyKyMQDpOCyFHG1oxDVSFzAzRkL7fKf9\n+cKV61GMNG9w/gFYYTD5Vegkx+3Cze3KoJxiFO8vi8+1Pu1EJXX/Zcdq9s8e\n5y/PVik34VeccL+aUFMsemqGheVlfYYl+qcsIt9nDfFI6oTatdGIMo0dYL49\nRp3ljjG/hbGeTvahZQV/MeTQqyU2WTTf2FJiwBYzr8Jgcoh8uJqGtvpMJi5E\nM7WUfueQa4Mm6ACmAZ2I0Q4aNgkKJuAB39sKzUo8Aqk6vNxD+fqS1DTBcY6Z\njmPlpdEOgMaIhaQEOPq+jvoadwMDNt2hJY61LAzjwbjecA2CD7Ft4g4uGvK5\niJFogzV2ffJaGwj6aiJVtwE6fCd7Qi37kDQOLG+SrLrHWv8KGojQ0NlYn+oK\nL+ay0JtzfhW7UlmsRFjo+FMsHG1Z4/W8+fMaupG598yyNzk8WzBruq4o50Kb\nTJeWlL04B8PlDKBbPfQHi/BIWg3uM0xk8seIuXzNp/xAICMPMDQTm0yQS0D3\nnbihHnBzSfUx8JXUJz9gwKzPVQJaXW/2lxUIN4nFov8Cqst9H/XzbpMw1OOj\nu+MprN7VZzuN74aGxeeahtdVnPrCg0Y8jgn6aOkkmmFTGaZY7TcVKp2ggpBv\nCoSW\r\n=6lEE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHwkc67MQ0WPzMJ6hHIVeobfk/Mms4TxQtkMRyDdTqHuAiAP+fOsbrPpFUWsHvDpwbQ1EkDvjBlnVlk7c/5HNOFnxA=="}]},"maintainers":[{"name":"boeckmtorg","email":"bbmatdd@gmail.com"}],"_npmUser":{"name":"boeckmtorg","email":"bbmatdd@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/metalsmith-json-insteadof-md_1.0.3_1597069602486_0.4325259966373496"},"_hasShrinkwrap":false},"1.0.4":{"name":"@boeckmt/metalsmith-json-insteadof-md","description":"A Metalsmith plugin to use JSON files in addition to or instead of markdown files.","repository":{"type":"git","url":"git://github.com/boeckMt/metalsmith-json-insteadof-md.git"},"author":{"name":"boeckmt","url":"https://boeckmt.github.io/"},"version":"1.0.4","license":"MIT","main":"lib/index.js","scripts":{"pretest":"eslint --fix .","test":"mocha test","preversion":"npm test","postversion":"git push && git push --tags"},"dependencies":{"debug":"^4.1.1"},"devDependencies":{"assert-dir-equal":"^1.1.0","eslint":"^7.6.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","metalsmith":"^2.3.0","metalsmith-markdown":"^1.3.0","mocha":"^8.1.1","prettier":"^2.0.5"},"gitHead":"a5a0223d5792f0ecaf0c6d3eb779b3ccdef62921","bugs":{"url":"https://github.com/boeckMt/metalsmith-json-insteadof-md/issues"},"homepage":"https://github.com/boeckMt/metalsmith-json-insteadof-md#readme","_id":"@boeckmt/metalsmith-json-insteadof-md@1.0.4","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-T1+7z2raoyUyxnLzmoMFvk4CkE7konNPJVEyUg2Zw9dgQZnFL1edC7N/AbR1vu0DMi4njFDD413zVUJpYDuzyQ==","shasum":"b7db09b0870c6edf9f913adcc2ae66f8b767f808","tarball":"https://registry.npmjs.org/@boeckmt/metalsmith-json-insteadof-md/-/metalsmith-json-insteadof-md-1.0.4.tgz","fileCount":22,"unpackedSize":10552,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfM9TLCRA9TVsSAnZWagAAiaAP/jUkzg3Tb/iiUPa5x6ju\nW8p54g5SW59YXM0fWPz0iVKPPWouCsQETNyxfp+zyr9QjUwp8b5O0/0OtqfX\nbfldUxTtPzhwuh2+TOe0tL5EnSYZqRGh+T4k2ujS82hwr7pHJ44NqgdlNg5K\n7plm7/Ce3ULrvYRk1/A/IHTSzLJsD9ts+BpMGT6S49Fma/gO1gyqHcM9YLNW\nharKcdfNeitneW56L3mDBeRD1U80tcPlhgifTBCgN7+0VpRsHSiLod+2DrjG\nbv5mAjgX1tQzSKVYmeEY2s/nbNT0F8CAGPNQPwsNP3dLLhl4G6NCK3JU47U6\nuTBKOON4Mj9KwdD1jlhOyFxwEIXccjGGTc9p3Sk1IN5CLePxVlJflJE1G4OJ\nTBLtrnax5Ji9g5Ep5jVrB2GEYIYCWM8UtUsjeKJAJx6wALkskIGmwCVXvMFS\nM8aTWXDdplzoxZZLt0khR3Zr7ec9kVpkpjls1wssv4iei3cgQzIkZ874EFlO\no9iejmgNT2joQ4NPx8xLPnbGkV4C7qolPoh28xxnVoLh5zmDIqrA7mgD03Y4\nCjm3P0eBoMZKll87LaxDeTHb8mOW5b1Q95Fv9UMza0Q1ZjqaWiyo0mfQ9a6q\nstxKVAVWevVjwWtghmiveshwKz9FbEeIqOCuR0baR6rhnZwwf4mht89gFphc\n+qUh\r\n=5LO5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGSqpTC7iryVxzQjSIfJpaP3wXRZ741PtRvmEoOCDDbvAiAu45c+UHc7xpQCvGrKJ/i9EfiPxXl7UPQEwzMPhuKApg=="}]},"maintainers":[{"name":"boeckmtorg","email":"bbmatdd@gmail.com"}],"_npmUser":{"name":"boeckmtorg","email":"bbmatdd@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/metalsmith-json-insteadof-md_1.0.4_1597232331311_0.12339412275744777"},"_hasShrinkwrap":false},"1.0.5":{"name":"@boeckmt/metalsmith-json-insteadof-md","description":"A Metalsmith plugin to use JSON files in addition to or instead of markdown files.","repository":{"type":"git","url":"git://github.com/boeckMt/metalsmith-json-insteadof-md.git"},"author":{"name":"boeckmt","url":"https://boeckmt.github.io/"},"version":"1.0.5","license":"MIT","main":"lib/index.js","scripts":{"pretest":"eslint --fix .","test":"mocha test","preversion":"npm test","postversion":"git push && git push --tags"},"dependencies":{"debug":"^4.3.4"},"devDependencies":{"assert-dir-equal":"^1.1.0","eslint":"^7.6.0","eslint-config-prettier":"^6.11.0","eslint-plugin-prettier":"^3.1.4","metalsmith":"^2.3.0","metalsmith-markdown":"^1.3.0","mocha":"^8.1.1","prettier":"^2.0.5"},"gitHead":"5b9999fd6e4460d9e6afc980b5023b00f98e4a15","bugs":{"url":"https://github.com/boeckMt/metalsmith-json-insteadof-md/issues"},"homepage":"https://github.com/boeckMt/metalsmith-json-insteadof-md#readme","_id":"@boeckmt/metalsmith-json-insteadof-md@1.0.5","_nodeVersion":"16.17.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-T+JOxz/5rTVW6eOmJRzDWFfOYFLj2fJyu0kF55bwmHVeNxKyTRQAJC2fLymOpVDDx7hYu/Nx+grp4f57B56CnQ==","shasum":"d2d3d1943298ecd0873bf4ad8ba3d77a3b03ec7b","tarball":"https://registry.npmjs.org/@boeckmt/metalsmith-json-insteadof-md/-/metalsmith-json-insteadof-md-1.0.5.tgz","fileCount":22,"unpackedSize":10717,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICcXCWBypusS7saIp17hutBY4KP1Tkg9d6kHqRJwLKMMAiEAn2w6gTesc2JNWsQsxEMycK3lpepU4y8dgWe0KKIn/30="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjR/7iACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq1nw/9FfjWreEK+x9uyLdXd61t1Q1dcEzTsTB+o5XrJjmV86f277vJ\r\n1MmDRGyLyKfjFyp7XGDGDy34lHRbJhN4kxNxsa+CRbjnGn/Rro3jEA2QBVCb\r\nBCmREcUGL3ECqTSX8nLsPoFBTKC/5elDSsqe12iYQiHf5TaGfVSFGOKb7GnF\r\nMGnBm8m/MbeV50KSntVc2aIuQiqLkS4kBBif0n8o1WTRRULork1aXPy4e4ET\r\noYyFWwqF+MWVLyK9WtX3P7s0acrpKJDlvYeVOral7xa2OoEt6HH3QJTzCIrQ\r\nOOWRf7hApEP+uVgMPOb6n1mQndkWERX/uBwKtmaoiuHnAIyG0EGUMB33cq2O\r\nclEuUiRN/V6H4pj5iM+g3+jWwyQX8IAkVM6JUi/fv0n1HnRZXvxF6W+T6r/X\r\n35JRrop6hVxwg68r9QPu/t5lhwDIglTI1DWXSg2Cf80BnCoGAu8BCkQMsqXi\r\n2aPVXZqUj+BS/YrKgtw4L/oEBWgSf9zHu5c3qCsceDdnLpWEiIeMqsKKiLE7\r\nuVEwN5tq7YIOP4OGdOxYm77XeXO3rD8PDK5Pj4O69orbQA36vq/K+rv0Z5xx\r\nBVv8K2/Ekf1kthEZCxX4Tp1YzDjRA1pZZiSWRdnVZimtZdX+KCwVnohQmwLo\r\nYjb+sbliwuoHHwLSioM9urs4qTyxGkbF6L4=\r\n=zLKq\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"boeckmtorg","email":"bbmatdd@gmail.com"},"directories":{},"maintainers":[{"name":"boeckmtorg","email":"bbmatdd@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/metalsmith-json-insteadof-md_1.0.5_1665662690402_0.5671810636669992"},"_hasShrinkwrap":false}},"time":{"created":"2020-08-10T13:48:54.172Z","1.0.2":"2020-08-10T13:48:54.658Z","modified":"2022-10-13T12:04:50.676Z","1.0.3":"2020-08-10T14:26:42.650Z","1.0.4":"2020-08-12T11:38:51.404Z","1.0.5":"2022-10-13T12:04:50.557Z"},"maintainers":[{"name":"boeckmtorg","email":"bbmatdd@gmail.com"}],"description":"A Metalsmith plugin to use JSON files in addition to or instead of markdown files.","homepage":"https://github.com/boeckMt/metalsmith-json-insteadof-md#readme","repository":{"type":"git","url":"git://github.com/boeckMt/metalsmith-json-insteadof-md.git"},"author":{"name":"boeckmt","url":"https://boeckmt.github.io/"},"bugs":{"url":"https://github.com/boeckMt/metalsmith-json-insteadof-md/issues"},"license":"MIT","readme":"# metalsmith-json-insteadof-md\n\n[![metalsmith: plugin][metalsmith-badge]][metalsmith-url]\n\nA Metalsmith plugin to use JSON files in addition to markdown files.\n\nThis plugin is based on [metalsmith-markdown](https://github.com/segmentio/metalsmith-markdown)\n\n## Installation\n\n```bash\n$ npm install --save @boeckmt/metalsmith-json-insteadof-md\n```\n\n## Javascript Usage\n\n Pass `options` if needed to the plugin and pass it to Metalsmith with the `use` method:\n\noptions:\n- fileExtnameFrom: <extname> //filter for all files with the extname - defaults '.json',\n- fileExtnameTo: <extname> //replaces the file in the files Objext with the extname - defaults '.html',\n\n\n```js\nconst Metalsmith = require('metalsmith');\nconst markdown = require('metalsmith-markdown');\nconst jsonContent = require('@boeckmt/metalsmith-json-insteadof-md'); // or import * as jsonContent from '@boeckmt/metalsmith-json-insteadof-md';\n\nMetalsmith(__dirname)\n    .source('./source/')\n    .destination('./dist/build/')\n    .use(jsonContent())\n    .use(markdown())\n    .build((err, files) => {\n      console.log(`new Build completed!`);\n      if (err) {\n        console.log(err);\n      }\n    });\n```\n\n\nuse the options whith `fileExtnameTo: '.md'` if you filter on the files later e.g.:\n\n```js\nMetalsmith(__dirname)\n    .source('./source/')\n    .destination('./dist/build/')\n    .use(jsonContent({\n      fileExtnameTo: '.md'\n    }))\n    .use(markdown())\n    .use(collections({\n      items: {\n        pattern: ['*/data/items/**/*.md']\n      }\n    }))\n    .build((err, files) => {\n      console.log(`new Build completed!`);\n      if (err) {\n        console.log(err);\n      }\n    });\n```\n\n## Write the content\n\nmy-file.md\n\n```md\n  ---\n  title: A Catchy Title\n  draft: false\n  ---\n\n  An unfinished article...\n```\n\nwriten in json:\n\n```json\n{\n  \"title\": \"A Catchy Title\",\n  \"draft\": false,\n  \"content\": \"<p></p>\"\n}\n```\n\n**The intention for this plugin was to use it with a json schema file and write the content with a IDE which supports json schema validation.**\n\n\n## License\n\nMIT\n\n[npm-badge]: https://img.shields.io/npm/v/metalsmith-markdown.svg\n[metalsmith-badge]: https://img.shields.io/badge/metalsmith-plugin-lightgrey.svg?longCache=true\n[metalsmith-url]: http://metalsmith.io\n","readmeFilename":"Readme.md"}