{"name":"rollup-plugin-json","version":"2.0.1","main":"dist/rollup-plugin-json.cjs.js","jsnext:main":"dist/rollup-plugin-json.es6.js","devDependencies":{"eslint":"^1.7.3","mocha":"^2.3.3","rollup":"^0.20.5","rollup-plugin-babel":"^1.0.0","rollup-plugin-buble":"^0.12.1","rollup-plugin-node-resolve":"^1.5.0","source-map-support":"^0.3.3"},"scripts":{"test":"mocha","pretest":"npm run build","build":"rollup -c -f cjs -o dist/rollup-plugin-json.cjs.js && rollup -c -f es6 -o dist/rollup-plugin-json.es6.js","prebuild":"rm -rf dist/*","prepublish":"npm test"},"files":["src","dist","README.md"],"dependencies":{"rollup-pluginutils":"^1.2.0"},"gitHead":"ea863d0d16dba182ec5ffdc084dd42f03bf1fa6b","description":"Convert .json files to ES6 modules:","_id":"rollup-plugin-json@2.0.1","_shasum":"83e45e9e3c0eeae2991a8ae70aba6cc53996c1bd","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.2.0","_npmUser":{"name":"rich_harris","email":"richard.a.harris@gmail.com"},"dist":{"shasum":"83e45e9e3c0eeae2991a8ae70aba6cc53996c1bd","tarball":"http://registry-npm.ywwl.com/rollup-plugin-json/download/rollup-plugin-json-2.0.1.tgz","integrity":"sha512-+6TsbQA9fDkIHkgq+P3stQNDSoAviaPVRLOBCCvRywySnO+y2dT5Soq0oe+mrTk6o8ltvDo9tzHwjRf0pGstHA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7jBi58akqB6wLx+UGWNRGFXISBVWfeICNi4hv/cWX2QIhAJH4rbeLZyEvZJbkBcc6Kq4Ndbu8MIfYg+dkl/4rU/d6"}],"size":3968,"noattachment":false,"key":"/rollup-plugin-json/-/rollup-plugin-json-2.0.1.tgz"},"maintainers":[{"name":"rich_harris","email":"richard.a.harris@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/rollup-plugin-json-2.0.1.tgz_1466712643737_0.35982289002276957"},"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":1466712645998,"_cnpm_publish_time":1466712645998,"dist-tags":{"latest":"4.0.0"}}