{"name":"rollup-plugin-yaml","version":"2.0.0","main":"dist/rollup-plugin-yaml.cjs.js","jsnext:main":"dist/rollup-plugin-yaml.es.js","devDependencies":{"@babel/core":"^7.6.4","@babel/preset-env":"^7.6.3","eslint":"^6.5.1","mocha":"^6.2.1","rollup":"^1.25.0","rollup-plugin-babel":"^4.3.3","rollup-plugin-node-resolve":"^5.2.0","source-map-support":"^0.5.13"},"scripts":{"pretest":"npm run build","test":"mocha","prepare":"npm run build","prebuild":"rm -rf dist/*","build":"rollup -c","prepublishOnly":"npm test","lint":"eslint src"},"dependencies":{"js-yaml":"^3.13.1","rollup-plugin-json":"^4.0.0","rollup-pluginutils":"^2.8.2","tosource":"^1.0.0"},"gitHead":"4d6c86068a5b953e99da816c7e46190751b1cdf8","description":"Convert .yaml and .yml files to ES6 modules:","_id":"rollup-plugin-yaml@2.0.0","_nodeVersion":"12.11.1","_npmVersion":"6.11.3","_npmUser":{"name":"lukastaegert","email":"lukas.taegert@tngtech.com"},"dist":{"integrity":"sha512-aBfREZIkvKjfwHbcpqVsst0iB2PvsdEpvGNw02N2kQ8rOP7ZClZDpxwylkpcmO9/xgD2uInA/AY3mGursT37zw==","shasum":"80a67b59e00f010f5f2a2bb6fa70aad4718f85f8","tarball":"http://registry-npm.ywwl.com/rollup-plugin-yaml/download/rollup-plugin-yaml-2.0.0.tgz","fileCount":8,"unpackedSize":10146,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdqchDCRA9TVsSAnZWagAAX8wP/Rqymy1n4/Vjj2g3RS8J\nRgbQ+HO1RRNd4q12GdMX2zv3DxL/i22H2G2NniuBcl8XHctKiUIs90n7UVcx\nhvigBNZ/lzM0XeU3ICv1YDOryKXqIeFkMmOfV1T0PH3f3cerrvfyn8Hm3LFe\nSqJZjRNaAfc/7ZQdW2DagvuXiU0taDIUIzVhxBgHq/203ihD/9vmQa0OyBvY\n6R9UqEbaASMeS1BgMTvFlKPb5AkSCtef6at9Zk5l7mXMxfhOxedvAp0WDIgJ\nHHCFkrlecMwISjqXhREYu9nq/X6ub1Kj50Xd7BMVXu/wNBKC7XeRHb4q34bJ\nW6CldibJS1xbzoifzlSGfVasAVNckeLbKGKG4Pk9VvNo5ArhkHUDHMzTtA2y\nfzHIojotrsPb0u2fE1XYaB8ZHBhEF9QFwoYVEMhIrdX/HjdkxFjQPT8vKRvf\n3FMBuo64hpfR4X/XTGI8nRaUzXUzX45cdUc7whjGT33Toeb439dif5kwHuR3\n2U5zvyuJo9e9KEyebuRXBPRWUzEPgrMA/f/gAiDaQCjk5uB71+jMmXOTpvZj\nB3Sm/kRe3uJ9s7wSDlnGfX78OAN6cJY/fXKbEhhgY6fJ/5s5+pVFWmIms5On\n8Ehvxqs9xvwrG19xIWr40KlPPctQpXyiuSYbJeESaoTtqfS2wHlj4DwSB+1q\nxxBh\r\n=P47E\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCtwf3cPi8Z22K7mYCVJb3rReu1kpEESgkDOzFhhcVIDQIgB6MTLch7xHNzfuCa1f2bQWiB8ecW3O08nTM5qFY2gYI="}],"size":2845,"noattachment":false,"key":"/rollup-plugin-yaml/-/rollup-plugin-yaml-2.0.0.tgz"},"maintainers":[{"email":"lukas.taegert@tngtech.com","name":"lukastaegert"},{"email":"richard.a.harris@gmail.com","name":"rich_harris"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-yaml_2.0.0_1571407938456_0.9627592728159666"},"_hasShrinkwrap":false,"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":1571407938747,"_cnpm_publish_time":1571407938747,"dist-tags":{"latest":"2.0.0"}}