{"_id":"rollup-plugin-yaml","_rev":"9-9d6cce6077706d125a1a73ab40fab794","name":"rollup-plugin-yaml","description":"Convert .yaml and .yml files to ES6 modules:","dist-tags":{"latest":"2.0.0"},"versions":{"1.0.0":{"name":"rollup-plugin-yaml","version":"1.0.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"},"files":["src","dist","README.md"],"dependencies":{"rollup-plugin-json":"^2.0.1","rollup-pluginutils":"^1.5.1","tosource":"^1.0.0","yaml":"^0.3.0","yamljs":"^0.2.8","yamlparser":"0.0.2"},"gitHead":"f966539f325923b2881eb4e2e8808ef41129f2b2","description":"Convert .yaml and .yml files to ES6 modules:","_id":"rollup-plugin-yaml@1.0.0","_shasum":"a2cf7f6c54e99ec22cc1556ef2b172f9178a7eca","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"dist":{"shasum":"a2cf7f6c54e99ec22cc1556ef2b172f9178a7eca","tarball":"https://registry.npmjs.org/rollup-plugin-yaml/-/rollup-plugin-yaml-1.0.0.tgz","integrity":"sha512-1W44EqWgOLxFZIX3v3bHmgiZDD+7Pc5LlvRVtOYiFHMUqQ8emKBk/qSnoPf/Q3fN/5OPOHq1JHfKg54EgZNRww==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAqHFpq09IBCYt4JtBp5E1t1q6bmUiK16kskzq5OSgUsAiA6BKYSEmFnT7BQIVUXuJ/Ed9FPXcOYjU/AXS/zN64s+g=="}]},"maintainers":[{"name":"rich_harris","email":"richard.a.harris@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/rollup-plugin-yaml-1.0.0.tgz_1467212626421_0.3424692125990987"},"directories":{},"deprecated":"This module has been deprecated and is no longer maintained. Please use @rollup/plugin-yaml."},"1.1.0":{"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":"https://registry.npmjs.org/rollup-plugin-yaml/-/rollup-plugin-yaml-1.1.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBBo4WV5iqahQ1KxIxVgiYvy+G2TrDGm13RkqjDm07Q2AiAU0e1Ei3eYG86UiG44NWcKmt7prpnxwY+j2ezmrZ3HXw=="}]},"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."},"2.0.0":{"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":"https://registry.npmjs.org/rollup-plugin-yaml/-/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="}]},"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","maintainers":[{"email":"lukas.taegert@tngtech.com","name":"lukastaegert"},{"email":"richard.a.harris@gmail.com","name":"rich_harris"},{"email":"andrew@shellscape.org","name":"shellscape"}],"time":{"modified":"2022-06-26T14:02:40.211Z","created":"2016-06-29T15:03:48.763Z","1.0.0":"2016-06-29T15:03:48.763Z","1.1.0":"2017-06-12T19:52:14.118Z","2.0.0":"2019-10-18T14:12:18.747Z"},"readmeFilename":"README.md"}