{"name":"rollup-plugin-json","version":"3.0.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":"^4.19.1","eslint-plugin-import":"^2.11.0","husky":"^0.14.3","lint-staged":"^7.1.0","mocha":"^5.1.1","rollup":"^0.58.2","rollup-plugin-buble":"^0.19.2","rollup-plugin-node-resolve":"^3.3.0","source-map-support":"^0.5.5"},"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"},"files":["src","dist","README.md"],"license":"MIT","repository":{"type":"git","url":"git+https://github.com/rollup/rollup-plugin-json.git"},"dependencies":{"rollup-pluginutils":"^2.2.0"},"gitHead":"2b2fd1cfe5b7e5c17831e240f75b859baa05efaa","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.0.0","_npmVersion":"6.0.1","_nodeVersion":"8.7.0","_npmUser":{"name":"lukastaegert","email":"lukas.taegert@tngtech.com"},"dist":{"integrity":"sha512-WUAV9/I/uFWvHhyRTqFb+3SIapjISFJS7R1xN/cXxWESrfYo9I8ncHI7AxJHflKRXhBVSv7revBVJh2wvhWh5w==","shasum":"aeed2ff36e6c4fd0c60c4a8fc3d0884479e9dfce","tarball":"http://registry-npm.ywwl.com/rollup-plugin-json/download/rollup-plugin-json-3.0.0.tgz","fileCount":8,"unpackedSize":9093,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa9ZEKCRA9TVsSAnZWagAAbfwP/jaaxPb6GBlj9OILViBo\nLdrsdPnSCrnJT4dCTnYJew75K2xhC3pXFov+1fsxo0onHdS2m6s6fmnkzriv\nGv5I7yMR5MWqPpQWMCBefGz205XzE6lNG68IotFxjPw2JHTBPgKQLIOO+YHt\nPqJrFvWT0osbfUmtuHp/0ZrqP1Hc1BnQNKqSj2Y0r8U/l/9SJqpFbp+91fUr\n/kIrMTcVhGtrQtp5uUzdKE5fmwAxXL3RF3Whn3krAoc/fgtLl4UVbRPn1iNu\nyzhYmTvZJO4Kugb+49lou2D+im+Fd9hcTQ/VHshrgZ6lGt2V+OBY8LVzn+KN\nWb0NX/+rAVrOz3PTfjig/GaVa73gndFqStGKiixrrIEiXK53hDj0BvPn4Lca\nEr6RjtqTuzSq3YmjzQAZCara0W67FIzSrOcjPCSdzOwejieL71kQ1P9a9VzN\nFPVBpRVzcMehnh/UyjfkCKABThd+sg2Z1M/LD+LGm5FfxDFYRotD2Sltd8jc\nVtoTf0l/Ob3NWPatki3P+/s8a0p1bRQOB9O03j85+Ub13rb/YyWDN/Dv8N31\nkbgXNn7UayVSTvL3E3O29zAapooFCP1iMKglXHt9R+a96Nns9bS5i8Z9ofQG\nG41Cwqf5Wij5Ep8djN4UgCJ1GtoHUnKCiGMxMy0gDcSu93/fG4Yg6NAYBbsn\nD6lT\r\n=Nb11\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGTkYtGvt0xLhM5XApHto8dDF5H7Hly0+FD/7K2O554hAiEAl2JYa8q7FiXf4A2lepVUOeABL+AZ9P0zgGgqCEDIgJk="}],"size":2685,"noattachment":false,"key":"/rollup-plugin-json/-/rollup-plugin-json-3.0.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.0.0_1526042889497_0.46734436471041896"},"_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":1526042889550,"_cnpm_publish_time":1526042889550,"dist-tags":{"latest":"4.0.0"}}