{"name":"rollup-plugin-yaml","version":"1.1.0","main":"dist/rollup-plugin-yaml.cjs.js","jsnext:main":"dist/rollup-plugin-yaml.es.js","devDependencies":{"eslint":"^2.13.1","mocha":"^2.5.3","rollup":"^0.33.0","rollup-plugin-babel":"^2.6.1","rollup-plugin-buble":"^0.12.1","rollup-plugin-node-resolve":"^1.7.1","source-map-support":"^0.4.1"},"scripts":{"test":"mocha","pretest":"npm run build","build":"rollup -c -f cjs -o dist/rollup-plugin-yaml.cjs.js && rollup -c -f es -o dist/rollup-plugin-yaml.es.js","prebuild":"rm -rf dist/*","prepublish":"npm test","lint":"eslint src"},"files":["src","dist","README.md"],"dependencies":{"js-yaml":"^3.8.4","rollup-plugin-json":"^2.0.1","rollup-pluginutils":"^1.5.1","tosource":"^1.0.0"},"gitHead":"5a3f644744b2386d42682a386c5463406ea2b689","description":"Convert .yaml and .yml files to ES6 modules:","_id":"rollup-plugin-yaml@1.1.0","_npmVersion":"5.0.0","_nodeVersion":"8.0.0","_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"dist":{"integrity":"sha512-R7d7M9P4VdOTPYfPlazA81niCF5ezDBm3QOTYkUwDYMGUXHKwWybDClO8Je1QnUQy8d3DBpe0kphWQs6o55yIg==","shasum":"8b55fd8bc6a483018abedfc7192dde0fdc65666b","tarball":"http://registry-npm.ywwl.com/rollup-plugin-yaml/download/rollup-plugin-yaml-1.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBBo4WV5iqahQ1KxIxVgiYvy+G2TrDGm13RkqjDm07Q2AiAU0e1Ei3eYG86UiG44NWcKmt7prpnxwY+j2ezmrZ3HXw=="}],"size":3278,"noattachment":false,"key":"/rollup-plugin-yaml/-/rollup-plugin-yaml-1.1.0.tgz"},"maintainers":[{"name":"rich_harris","email":"richard.a.harris@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-yaml-1.1.0.tgz_1497297132998_0.7739920683670789"},"directories":{},"deprecated":"This module has been deprecated and is no longer maintained. Please use @rollup/plugin-yaml.","readme":"# rollup-plugin-yaml\n\nConvert .yaml and .yml files to ES6 modules:\n\n```js\n// import a single property from a YAML file\nimport { foo } from './config.yaml';\n\n// import the whole file as an object\nimport config from './config.yaml';\n```\n\n\n## Installation\n\n```bash\nnpm install --save-dev rollup-plugin-yaml\n```\n\n\n## Usage\n\n```js\nimport { rollup } from 'rollup';\nimport yaml from 'rollup-plugin-yaml';\n\nrollup({\n  entry: 'main.js',\n  plugins: [\n    yaml({\n      // All YAML files will be parsed by default,\n      // but you can also specifically include/exclude files\n      include: 'node_modules/**',  // Default: undefined\n      exclude: [ 'node_modules/foo/**', 'node_modules/bar/**' ],  // Default: undefined\n      // optionally mutate parsed yaml with a transform function.\n      // The transform function may either:\n      // - return an updated version of the yaml content\n      // - return `undefined`, and mutate the yaml content directly\n      transform(data) {\n        if (Array.isArray(data))\n          return data.filter((element) => !element.private);\n      }\n    })\n  ]\n});\n```\n\n\n## License\n\nMIT\n","publish_time":1497297134118,"_cnpm_publish_time":1497297134118,"dist-tags":{"latest":"2.0.0"}}