{"name":"rollup-plugin-json","version":"2.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":"^3.4.0","eslint-plugin-import":"^2.2.0","mocha":"^3.0.2","rollup":"^0.37.0","rollup-plugin-buble":"^0.15.0","rollup-plugin-node-resolve":"^2.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"},"files":["src","dist","README.md"],"repository":{"type":"git","url":"git+https://github.com/rollup/rollup-plugin-json.git"},"dependencies":{"rollup-pluginutils":"^1.5.2"},"gitHead":"8f753fa894aa41b1a7ec8b4def5d655c69f7731c","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.1.0","_shasum":"7f8e1b2b156932dd934b938dc5547e4118d4121f","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"dist":{"shasum":"7f8e1b2b156932dd934b938dc5547e4118d4121f","tarball":"http://registry-npm.ywwl.com/rollup-plugin-json/download/rollup-plugin-json-2.1.0.tgz","integrity":"sha512-Ero84YzU44mIO3Uac4i7s73FW1jrcBiaSMIZnVT3kefUzYR+1QYBK2jOujDIExa/gsz8LhA88/7LP5nI8k0ktw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBppmdHiOSP+/P8mKAMLr+rejbCYuTsRalB1rQn5KAjlAiEAqMeWy/hmxFEo4wQ+bjUEU65P4RalUeJS+Z51JfuBdQg="}],"size":4815,"noattachment":false,"key":"/rollup-plugin-json/-/rollup-plugin-json-2.1.0.tgz"},"maintainers":[{"name":"rich_harris","email":"richard.a.harris@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/rollup-plugin-json-2.1.0.tgz_1481840124602_0.45574343646876514"},"directories":{},"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":1481840125296,"_cnpm_publish_time":1481840125296,"dist-tags":{"latest":"4.0.0"}}