{"_id":"yml-loader","_rev":"8-f43dfc7ba7a5361cd67b13626e1867f5","name":"yml-loader","description":"YAML loader for webpack","dist-tags":{"latest":"2.1.0"},"versions":{"1.0.0":{"name":"yml-loader","version":"1.0.0","description":"YAML loader for webpack","main":"index.js","repository":{"type":"git","url":"git+https://github.com/nkt/yml-loader.git"},"keywords":["yaml","loader","webpack","webpack-loader"],"author":{"name":"Nikita Gusakov","email":"gusnkt@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/nkt/yml-loader/issues"},"homepage":"https://github.com/nkt/yml-loader#readme","dependencies":{"js-yaml":"^3.6.1"},"gitHead":"436162c7844dd89f4672401d0abe03a3b90a5a98","_id":"yml-loader@1.0.0","scripts":{},"_shasum":"2f9c091bd32c4645143169ba00687b405cca33f9","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"nkt","email":"gusnkt@gmail.com"},"dist":{"shasum":"2f9c091bd32c4645143169ba00687b405cca33f9","tarball":"https://registry.npmjs.org/yml-loader/-/yml-loader-1.0.0.tgz","integrity":"sha512-6a/brR5F3D6gBEZgVw1pqeNIgyXWQOr6RD9qp+F9p/uJ86+UKHRVR+K3S0/7MWjuumZYr4u7Dco5ClbRz059cQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHeXLB3Y2ybpyWuAmWuBxHbtJr6n4PmD0CxgICbgt1K4AiEAklhEJFuLjsSBxq0M/jGDf4qt9nCA4ljkOs9V0E5ZgrA="}]},"maintainers":[{"name":"nkt","email":"gusnkt@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/yml-loader-1.0.0.tgz_1469551007669_0.2096257044468075"}},"1.1.0":{"name":"yml-loader","version":"1.1.0","description":"YAML loader for webpack","main":"index.js","repository":{"type":"git","url":"git+https://github.com/nkt/yml-loader.git"},"keywords":["yaml","json","remove","keys","blacklist","loader","webpack","webpack-loader"],"author":{"name":"Nikita Gusakov","email":"gusnkt@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/nkt/yml-loader/issues"},"homepage":"https://github.com/nkt/yml-loader#readme","dependencies":{"js-yaml":"^3.6.1","loader-utils":"^0.2.15"},"gitHead":"e152f78b06a9580a4ac827588aafa9a7b8d1e316","_id":"yml-loader@1.1.0","scripts":{},"_shasum":"aef3d37dc9808565f292c6fe74929f69a5881a4c","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"nkt","email":"gusnkt@gmail.com"},"dist":{"shasum":"aef3d37dc9808565f292c6fe74929f69a5881a4c","tarball":"https://registry.npmjs.org/yml-loader/-/yml-loader-1.1.0.tgz","integrity":"sha512-EfVtZuJXBw/hepC4VrGYjzYEgEZDvMS2V7SaQV3N8Ej0jx1UGEr+w0JSlYjh2XZcGrZ0SNuZJ2rOQiOuYGJDNQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcbS+8wrFEMBnVSsZS+ym2gaHGXqo4ZZUGuUhvZVht3QIhALP4fniKeJR58UxjQNywzEwlIi75UW6hEni4MdzYxtML"}]},"maintainers":[{"name":"nkt","email":"gusnkt@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/yml-loader-1.1.0.tgz_1471205560552_0.5294734339695424"}},"2.0.0":{"name":"yml-loader","version":"2.0.0","description":"YAML loader for webpack","main":"index.js","repository":{"type":"git","url":"git+https://github.com/nkt/yml-loader.git"},"keywords":["yaml","json","remove","keys","blacklist","loader","webpack","webpack-loader"],"author":{"name":"Nikita Gusakov","email":"gusnkt@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/nkt/yml-loader/issues"},"homepage":"https://github.com/nkt/yml-loader#readme","dependencies":{"js-yaml":"^3.8.3","loader-utils":"^1.1.0"},"gitHead":"1e3954b1311e0a50274970eff6ccd3a1d28b959f","_id":"yml-loader@2.0.0","scripts":{},"_shasum":"5129cbb7a4d8a50bb63c2eff82ed742980115f8f","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"nkt","email":"gusnkt@gmail.com"},"dist":{"shasum":"5129cbb7a4d8a50bb63c2eff82ed742980115f8f","tarball":"https://registry.npmjs.org/yml-loader/-/yml-loader-2.0.0.tgz","integrity":"sha512-aNxFkbtVqgZWMmIT7aZ+CkpuzZnQKYfJCz0FOAqJuiw6js/VeNTUCjHNssyN7SZ5WXpZydU1bFBQSQnj/Tvcmw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD5fZZyWe3sXI4e1IlaL4wRq3Z2lU9VQWHLtcYXfITMjQIge1krbkSLEBJQFpmnGSDNz3Isjtr7hCbAz9uG5JskAww="}]},"maintainers":[{"name":"nkt","email":"gusnkt@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/yml-loader-2.0.0.tgz_1492986975573_0.6692406923975796"}},"2.0.1":{"name":"yml-loader","version":"2.0.1","description":"YAML loader for webpack","main":"index.js","repository":{"type":"git","url":"git+https://github.com/nkt/yml-loader.git"},"keywords":["yaml","json","remove","keys","blacklist","loader","webpack","webpack-loader"],"author":{"name":"Nikita Gusakov","email":"gusnkt@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/nkt/yml-loader/issues"},"homepage":"https://github.com/nkt/yml-loader#readme","dependencies":{"js-yaml":"^3.8.3","loader-utils":"^1.1.0"},"gitHead":"4b1b7129b1096bf8d616a30189366b58aa732c19","_id":"yml-loader@2.0.1","scripts":{},"_shasum":"62e9257a066740c957ccb7c389532fc50cbcc075","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.9.0","_npmUser":{"name":"nkt","email":"gusnkt@gmail.com"},"dist":{"shasum":"62e9257a066740c957ccb7c389532fc50cbcc075","tarball":"https://registry.npmjs.org/yml-loader/-/yml-loader-2.0.1.tgz","integrity":"sha512-KaVFgyC/aTF5+PIi+ka3JlIq17i3hxtpiltnIiZWJXlbJ0toVWHg7DnKo87AxutB+Fc+GRPPTX+A16gYmvsSFw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB0frMAlmF/VzTxa2nd04mcZawbIF8ARwGPXG8EIqiPRAiEA7OklUE6DvOBcEuiBST+Izr++GEiWp3aiUN6yxBUJBNs="}]},"maintainers":[{"name":"nkt","email":"gusnkt@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/yml-loader-2.0.1.tgz_1493137996756_0.09956281050108373"}},"2.1.0":{"name":"yml-loader","version":"2.1.0","description":"YAML loader for webpack","main":"index.js","repository":{"type":"git","url":"git+https://github.com/nkt/yml-loader.git"},"keywords":["yaml","json","remove","keys","blacklist","loader","webpack","webpack-loader"],"author":{"name":"Nikita Gusakov","email":"gusnkt@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/nkt/yml-loader/issues"},"homepage":"https://github.com/nkt/yml-loader#readme","dependencies":{"js-yaml":"^3.8.3","loader-utils":"^1.1.0"},"gitHead":"33e388e4e69e3be45d58228f0a55e513399db520","_id":"yml-loader@2.1.0","_npmVersion":"5.0.4","_nodeVersion":"8.1.3","_npmUser":{"name":"nkt","email":"gusnkt@gmail.com"},"dist":{"integrity":"sha512-mo42d5FQWlXxpyTEpYywPu1LzK3F69pPPCOB8WKgJi8s+aqaogQP7XnXTjSobbKzzlZ/wXm7kg9CkP4x4ZnVMw==","shasum":"b976b8691b537b6d3dc7d92a9a7d34b90de10870","tarball":"https://registry.npmjs.org/yml-loader/-/yml-loader-2.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDKuEt+uLruih/QCTzHp2jusvqZhJlIEnBlAxtuF0MHDAiEAji0cSP7hBtyfF2DvUwcXT8SkAouyWPmB3YxRKfujz9g="}]},"maintainers":[{"name":"nkt","email":"gusnkt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/yml-loader-2.1.0.tgz_1499763770195_0.5708588280249387"}}},"readme":"YAML Loader\n===========\n\nYAML loader for [webpack](https://webpack.github.io).\n\n\nInstallation\n------------\n\n```\nnpm install --save-dev yml-loader\n```\n\nUsage\n-----\n\n```js\n// webpack.config.js\n\nmodule.exports = {\n  module: {\n    loaders: [\n      {\n        test: /\\.yml$/,\n        loader: 'yml'\n      }\n    ]\n  }\n};\n```\n\nMultiple document loading\n-------------------------\n\nBy adding a `multiDocument` option will make this possible.\n\n```yaml\n%YAML 1.2\n---\ndoc: 1\n---\ndoc: 2\n...\n```\n\n\nBlacklisting keys\n-----------------\n\nWhen passed a `keysToRemove` query (`Array` of `String`s) to remove keys from the loader output.\n\nGiven input file:\n```yaml\ndevelopment:\n  public_key: \"this is needed on the client\"\n  private_key: \"should be restricted to server\"\nprod:\n  public_key: \"also needed on the client\"\n  private_key: \"missile launch codes ¯\\_(ツ)_/¯\"\n```\nAnd this loader config:\n```js\n// webpack.config.js under module.exports.module:\nloaders: [\n  {\n    test: /\\.ya?ml$/,\n    loader: 'yml',\n    query: {\n      // debug: true, // enable to display removed keys\n      keysToRemove: ['private_key', ],\n    },\n  },\n],\n```\nWill output:\n```js\n{\n  development: { public_key: 'this is needed on the client' },\n  prod: { public_key: 'also needed on the client' }\n}\n```\n\nLicense\n-------\n[MIT](LICENSE)\n","maintainers":[{"name":"nkt","email":"gusnkt@gmail.com"}],"time":{"modified":"2022-06-29T07:43:45.915Z","created":"2016-07-26T16:36:49.403Z","1.0.0":"2016-07-26T16:36:49.403Z","1.1.0":"2016-08-14T20:12:42.539Z","2.0.0":"2017-04-23T22:36:17.507Z","2.0.1":"2017-04-25T16:33:18.402Z","2.1.0":"2017-07-11T09:02:51.132Z"},"homepage":"https://github.com/nkt/yml-loader#readme","keywords":["yaml","json","remove","keys","blacklist","loader","webpack","webpack-loader"],"repository":{"type":"git","url":"git+https://github.com/nkt/yml-loader.git"},"author":{"name":"Nikita Gusakov","email":"gusnkt@gmail.com"},"bugs":{"url":"https://github.com/nkt/yml-loader/issues"},"license":"MIT","readmeFilename":"README.md"}