{"_id":"rollup-plugin-yaml","_rev":"3332124","name":"rollup-plugin-yaml","description":"Convert .yaml and .yml files to ES6 modules:","dist-tags":{"latest":"2.0.0"},"maintainers":[{"name":"lukastaegert","email":""},{"name":"rich_harris","email":""},{"name":"shellscape","email":""}],"time":{"modified":"2024-07-10T07:26:43.000Z","created":"2016-06-29T15:03:48.763Z","2.0.0":"2019-10-18T14:12:18.747Z","1.1.0":"2017-06-12T19:52:14.118Z","1.0.0":"2016-06-29T15:03:48.763Z"},"users":{},"versions":{"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":{"shasum":"80a67b59e00f010f5f2a2bb6fa70aad4718f85f8","size":2845,"noattachment":false,"key":"/rollup-plugin-yaml/-/rollup-plugin-yaml-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rollup-plugin-yaml/download/rollup-plugin-yaml-2.0.0.tgz"},"maintainers":[{"name":"lukastaegert","email":""},{"name":"rich_harris","email":""},{"name":"shellscape","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-yaml_2.0.0_1571407938456_0.9627592728159666"},"_hasShrinkwrap":false,"publish_time":1571407938747,"deprecated":"This module has been deprecated and is no longer maintained. Please use @rollup/plugin-yaml.","_cnpm_publish_time":1571407938747,"_cnpmcore_publish_time":"2021-12-16T20:26:41.501Z"},"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":{"shasum":"8b55fd8bc6a483018abedfc7192dde0fdc65666b","size":3278,"noattachment":false,"key":"/rollup-plugin-yaml/-/rollup-plugin-yaml-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rollup-plugin-yaml/download/rollup-plugin-yaml-1.1.0.tgz"},"maintainers":[{"name":"lukastaegert","email":""},{"name":"rich_harris","email":""},{"name":"shellscape","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-yaml-1.1.0.tgz_1497297132998_0.7739920683670789"},"directories":{},"publish_time":1497297134118,"_hasShrinkwrap":false,"deprecated":"This module has been deprecated and is no longer maintained. Please use @rollup/plugin-yaml.","_cnpm_publish_time":1497297134118,"_cnpmcore_publish_time":"2021-12-16T20:26:41.775Z"},"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","size":2225,"noattachment":false,"key":"/rollup-plugin-yaml/-/rollup-plugin-yaml-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rollup-plugin-yaml/download/rollup-plugin-yaml-1.0.0.tgz"},"maintainers":[{"name":"lukastaegert","email":""},{"name":"rich_harris","email":""},{"name":"shellscape","email":""}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/rollup-plugin-yaml-1.0.0.tgz_1467212626421_0.3424692125990987"},"directories":{},"publish_time":1467212628763,"_hasShrinkwrap":false,"deprecated":"This module has been deprecated and is no longer maintained. Please use @rollup/plugin-yaml.","_cnpm_publish_time":1467212628763,"_cnpmcore_publish_time":"2021-12-16T20:26:42.070Z"}},"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","_attachments":{}}