{"name":"rollup-plugin-json","version":"2.3.1","main":"dist/rollup-plugin-json.cjs.js","module":"dist/rollup-plugin-json.es.js","jsnext:main":"dist/rollup-plugin-json.es.js","devDependencies":{"eslint":"^3.4.0","eslint-plugin-import":"^2.2.0","mocha":"^3.0.2","rollup":"^0.41.6","rollup-plugin-buble":"^0.15.0","rollup-plugin-node-resolve":"^3.0.0","source-map-support":"^0.4.2"},"scripts":{"test":"mocha","pretest":"npm run build","build":"rollup -c","prebuild":"rm -rf dist/*","prepublish":"npm test","lint":"eslint src"},"files":["src","dist","README.md"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/rollup/rollup-plugin-json.git"},"dependencies":{"rollup-pluginutils":"^2.0.1"},"peerDependencies":{"rollup":"< 0.59.0"},"gitHead":"50db997530e1a4b20377ceb78632a7c1bdcce725","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@2.3.1","_npmVersion":"6.0.1","_nodeVersion":"8.7.0","_npmUser":{"name":"lukastaegert","email":"lukas.taegert@tngtech.com"},"dist":{"integrity":"sha512-alQQQVPo2z9pl6LSK8QqyDlWwCH5KeE8YxgQv7fa/SeTxz+gQe36jBjcha7hQW68MrVh9Ms71EQaMZDAG3w2yw==","shasum":"9759d27f33dcd2c896de18b6235df162b88edd77","tarball":"http://registry-npm.ywwl.com/rollup-plugin-json/download/rollup-plugin-json-2.3.1.tgz","fileCount":8,"unpackedSize":34547,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa9Yy8CRA9TVsSAnZWagAA6I0P/RhidYZQDPITw83WQ1rv\nmA6a70LFDfBfs6fIwkPeCci3OLvL4Us4CUycjCyesH3rPizi8OKcV1VrcGIJ\ntXt4PkgNGHRIIkPYs32LhvQPUBVceDgpyKete+En/BcEFVf/Oc1vZieakRgd\nhHTbR6GrlglzK+JJE/6gtxVA8+Ouhhjgh3bQG04X4wd7xoW9wRveB2s5i5ML\nNCTyh53G3YKMrUv19oO0nqRAW2ff7XaKAgZqD5MYkYxVRj/Zvi3pl3sJi6JQ\nyl4LH0e1W0pkYCyim2S6/yl1ZW/C/llLwZkg+ynQ5iNaoIdRDKQLWrOKp8x8\nJY2AgGahOMbjgeJDity8RNTOHr/KDV0pCSwL/Hv/xODnqSyIhURf0cvglvL5\nybihOYQNNS1XrAq7lCyAhLOV5vwdkCZLmIE66bGeYVejugBLbPXIgDVKjWIs\naS7wFMQO15rmYzEw1fIGqj0OqWYJ4y+V2R0HMZ78cHDA9ZlFimDFHnMJx8JR\nKXx1zW0u9n8w4YisWsNspQyiJxMZOGAxJNBj8qOzoqsdUQJOcY77MX7/0XnQ\nt18pjrigoczjnI8E1y5H4iB2sasbLI06fU+oWADOViCRXbAPxUJS1U86aWqh\nbYg7Af2IIr6i9ilWkWAe+++MFEwNfQrMj6An25l6PWKQo3qzESrnsiveNk2p\ngTIl\r\n=ujOR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBOm/vjTdzNzsXLSa9qzg7Zh4bOYSRi5pk3tg6A8aVZhAiA5S0Gf3rLD/gEPBG7E7a8Vqsig5tuHB2w6Ua/EbEDSOg=="}],"size":5264,"noattachment":false,"key":"/rollup-plugin-json/-/rollup-plugin-json-2.3.1.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_2.3.1_1526041787341_0.9359862476304659"},"_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":1526041787470,"_cnpm_publish_time":1526041787470,"dist-tags":{"latest":"4.0.0"}}