{"name":"rollup-plugin-json","version":"3.1.0","main":"dist/rollup-plugin-json.cjs.js","module":"dist/rollup-plugin-json.es.js","jsnext:main":"dist/rollup-plugin-json.es.js","devDependencies":{"eslint":"^5.5.0","eslint-plugin-import":"^2.14.0","husky":"^0.14.3","lint-staged":"^7.2.2","mocha":"^5.2.0","rollup":"^0.65.2","rollup-plugin-buble":"^0.19.2","rollup-plugin-node-resolve":"^3.4.0","source-map-support":"^0.5.9"},"scripts":{"test":"mocha","pretest":"npm run build","build":"rollup -c","prebuild":"rm -rf dist/*","prepublishOnly":"npm test","prepare":"npm run build","precommit":"lint-staged","postcommit":"git reset","lint":"eslint --fix src test/test.js"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/rollup/rollup-plugin-json.git"},"dependencies":{"rollup-pluginutils":"^2.3.1"},"gitHead":"bb64f6536ec6155dfea94771076cc88d19f3c049","description":"Convert .json files to ES6 modules:","bugs":{"url":"https://github.com/rollup/rollup-plugin-json/issues"},"homepage":"https://github.com/rollup/rollup-plugin-json#readme","_id":"rollup-plugin-json@3.1.0","_npmVersion":"6.4.1","_nodeVersion":"10.7.0","_npmUser":{"name":"lukastaegert","email":"lukas.taegert@tngtech.com"},"dist":{"integrity":"sha512-BlYk5VspvGpjz7lAwArVzBXR60JK+4EKtPkCHouAWg39obk9S61hZYJDBfMK+oitPdoe11i69TlxKlMQNFC/Uw==","shasum":"7c1daf60c46bc21021ea016bd00863561a03321b","tarball":"http://registry-npm.ywwl.com/rollup-plugin-json/download/rollup-plugin-json-3.1.0.tgz","fileCount":8,"unpackedSize":10305,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbmo2jCRA9TVsSAnZWagAA1tMP/iKf7i33Df+6+rsRnNTt\nV84zfzFY7qdE5iv06qNvFNp1UXQhiknA0Q6oAr+SYVZkbaCdp/5cESBKkMdt\nBgqfQZZdooHlFfiffzmf7fL4wyHrh23LlS2yZ04G3PsA+vzSStkerjpdIO3D\nie2V3RVjpB0ynK8wBcGhljnkN6AoggTA+Dk4m5UAN8elRlqyhfJGTAw0KVHn\ns1mBLIRTAICYZmRhgS06RHlWuUVk5/B/WFqSK7vKslPaCVYBZsO4pbGOEmll\nI+BLoKgUT9i66xtfwZH3pEbzcdbmEy60sK3lbu5k4kZXGt29DfdOD+jbPfg2\nWZOzdPnRS8b8lIITN61mVPstclU7ND3dDgZylaXJAWJf7PZaBEx/faQnjwsC\nuhlHUNe1bLlxT2Ga5GnMhoMmvWqZA9isjh7CkVVagQ5wzByV17G2Soz3ehN4\nYHYzT5dow3ESabOd7ejaFjZ3rTNC/cDsilqLojEYemmZlH2st+I341NYEjCc\nEFb7FvEm1v/9+NtGN9rYsvuftNMmnJ5r6VzxQEEGiaNqMOpG00jemil49xRs\nFdPe/UjWvapifGaoiDWqG+Vgem3IFDgd6H8EX38suzvio8mgGfVTclYbajXI\niheXO7AKpGXT4xRYzGCKQlVohbc8TlaEMlQXeOCjn1OFkf2r9ueRggqOznFx\nxT8W\r\n=WwT3\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCWadcJvX6j7FqoY39qWXkwijaqeOIckG1pQh1l4eloXgIhAIz5B/SycD/RANYC7RJBeJun/K044sphyGN0nOHNE8RH"}],"size":2902,"noattachment":false,"key":"/rollup-plugin-json/-/rollup-plugin-json-3.1.0.tgz"},"maintainers":[{"email":"guybedford@gmail.com","name":"guybedford"},{"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-json_3.1.0_1536855458932_0.6811237112352528"},"_hasShrinkwrap":false,"deprecated":"This module has been deprecated and is no longer maintained. Please use @rollup/plugin-json.","readme":"# rollup-plugin-json\n\nConvert .json files to ES6 modules:\n\n```js\n// import a single property from a JSON file,\n// discarding the rest\nimport { version } from './package.json';\nconsole.log( `running version ${version}` );\n\n// import the whole file as an object\nimport pkg from './package.json';\nconsole.log( `running version ${pkg.version}` );\n```\n\n\n## Installation\n\n```bash\nnpm install --save-dev rollup-plugin-json\n```\n\n\n## Usage\n\n```js\n// rollup.config.js\nimport json from 'rollup-plugin-json';\n\nexport default {\n  input: 'src/main.js',\n  output: {\n    file: 'dist/bundle.js',\n    format: 'iife'\n  },\n\n  plugins: [\n    json({\n      // All JSON files will be parsed by default,\n      // but you can also specifically include/exclude files\n      include: 'node_modules/**',\n      exclude: [ 'node_modules/foo/**', 'node_modules/bar/**' ],\n\n      // for tree-shaking, properties will be declared as\n      // variables, using either `var` or `const`\n      preferConst: true, // Default: false\n\n      // specify indentation for the generated default export —\n      // defaults to '\\t'\n      indent: '  ',\n\n      // ignores indent and generates the smallest code\n      compact: true, // Default: false\n\n      // generate a named export for every property of the JSON object\n      namedExports: true // Default: true\n    })\n  ]\n};\n```\n\n\n## License\n\nMIT\n","publish_time":1536855459098,"_cnpm_publish_time":1536855459098,"dist-tags":{"latest":"4.0.0"}}