{"name":"rollup-plugin-visualizer","version":"4.0.0","main":"plugin/index.js","author":{"name":"Denis Bardadym","email":"bardadymchik@gmail.com"},"license":"MIT","bin":{"rollup-plugin-visualizer":"bin/cli.js"},"repository":{"type":"git","url":"git@github.com:btd/rollup-plugin-visualizer.git"},"homepage":"https://github.com/btd/rollup-plugin-visualizer","bugs":{"url":"https://github.com/btd/rollup-plugin-visualizer/issues"},"scripts":{"lint":"eslint .","build":"node build.js","clean":"del-cli lib","prepare":"yarn run build","test":"node build.js --all --e2e"},"dependencies":{"nanoid":"^2.1.6","open":"^7.0.3","pupa":"^2.0.0","source-map":"^0.7.3","yargs":"^15.0.0"},"peerDependencies":{"rollup":">=0.60.0"},"devDependencies":{"@rollup/plugin-commonjs":"^11.0.2","@rollup/plugin-node-resolve":"^7.1.1","bytes":"^3.1.0","d3-array":"^2.2.0","d3-color":"^1.4.0","d3-hierarchy":"^1.1.8","d3-scale":"^3.0.0","d3-scale-chromatic":"^1.5.0","d3-shape":"^1.3.4","del-cli":"^3.0.0","eslint":"^6.0.1","htm":"^3.0.3","postcss-url":"^8.0.0","preact":"^10.3.3","prettier":"^2.0.1","rollup":"^2.0.6","rollup-plugin-postcss":"^2.0.3","rollup-plugin-terser":"^5.1.2","sass":"^1.22.7","webcola":"^3.4.0"},"engines":{"node":">=10"},"readmeFilename":"README.md","readme":"# Rollup Plugin Visualizer\n\n[![NPM Version](https://img.shields.io/npm/v/rollup-plugin-visualizer.svg)](https://npmjs.org/package/rollup-plugin-visualizer) [![Travis CI build status](https://img.shields.io/travis/com/btd/rollup-plugin-visualizer.svg)](https://travis-ci.com/btd/rollup-plugin-visualizer)\n\nVisualize and analyze your Rollup bundle to see which modules are taking up space.\n\n## Screenshots\n\n![pic](https://github.com/btd/rollup-plugin-visualizer/blob/master/pics/collage.png?raw=true)\n\n## Installation\n\n```sh\nnpm install --save-dev rollup-plugin-visualizer\n```\n\nor via yarn:\n\n```sh\nyarn add --dev rollup-plugin-visualizer\n```\n\n## Usage\n\n```javascript\nimport visualizer from 'rollup-plugin-visualizer';\n\n//...\nplugins: [\n  visualizer()\n],\n//...\n```\n\n## Options\n\n`filename` (string, default `stats.html`) - name of the file with diagram to generate\n\n`title` (string, default `Rollup Visualizer`) - title tag value\n\n`sourcemap` (boolean, default `false`) - Use sourcemaps to calculate sizes (e.g. after UglifyJs or Terser)\n\n`open` (boolean, default `false`) - Open generated file in default user agent\n\n`template` (string, default `treemap`) - Which digram type to use: `sunburst`, `treemap`, `network` (very early stage, feedback welcomed)\n\n`chartParameters.width` (number, default `undefined`) - Set svg viewBox width to this number\n\n`chartParameters.height` (number, default `undefined`) - Set svg viewBox height to this number\n\n`json` (boolean, default `false`) - Product portable json file that can be used with plugin CLI util to generate graph from several json files. Every UI property ignored in this case.\n\n`gzipSize` (boolean, default `false`) - Collect gzip size from source code and display it at chart\n\n`brotliSize` (boolean, default `false`) - Collect brolti size from source code and display it at chart. Only if current node version supports it\n\n## CLI\n\nThis plugin provides cli util `rollup-plugin-visualizer`. Add `--help` to check actual options. It can be used like:\n\n```sh\nrollup-plugin-visualizer [OPTIONS] stat1.json stat2.json ../stat3.json\n```\n\nThis can be usefull in case you have different config files in the same project and you want to display all of them in the same chart.\n\n## Build plugin\n\nFor development if you need to build plugin, just exec:\n\n```js\nyarn run build\n```\n\n## Disclaimer about generated files\n\nGenerated html files do not and never will contain your source code (contents of files). They can contain only js/html/css code required to build chart (plugin code) and statistical information about your source code.\n\nThis statistical information can contain:\n\n- size of files included in bundle\n- size of files included in source map\n- file's path\n- files hierarchy (fs tree for your files)\n\n## Upgrades\n\nSee CHANGELOG.md.\n\n## Acknowledgements\n\nInitially this plugin was based on `webpack-visualizer`, but in the end used only styles and layout. Thanks to the tons of people around internet for great examples of d3 usage. Also i would like to thank you Mike Bostock for awesome D3, and tons of examples.\n","description":"[![NPM Version](https://img.shields.io/npm/v/rollup-plugin-visualizer.svg)](https://npmjs.org/package/rollup-plugin-visualizer) [![Travis CI build status](https://img.shields.io/travis/com/btd/rollup-plugin-visualizer.svg)](https://travis-ci.com/btd/rollu","licenseText":"The MIT License (MIT)\n\nCopyright (c) 2016 Denis Bardadym\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"rollup-plugin-visualizer@4.0.0","dist":{"shasum":"46f92965e982f755360344ff4dfe2e049bfb541c","integrity":"sha512-Hl3mNdvt4PXSgRxDh/JF6J8q1+/siuDJzndzVTgbHsT5zjkdeSJ+BK7bjFkFUW8JiKAy7FsdMKfUjKZryHBb8w==","tarball":"http://registry-npm.ywwl.com/rollup-plugin-visualizer/download/rollup-plugin-visualizer-4.0.0.tgz","fileCount":31,"unpackedSize":1269580,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJed2JnCRA9TVsSAnZWagAA6SIQAIWTyLh/B2fBhbiJqoFI\nyPgJ8TtEDKiedgYzgQOq22sDIehKF7brnMLnU6ebJ3kA0YOfQNitMbQqjVHM\nMFiK6Nj5pIyQ2SkT7efmfKFb4uJZWZvW4kGXGaiI9AfhH0Dcxycd0anS57CS\nPwUsMlVUnk6RAI5eoIUw6aM/MwDOIGchNxyiuxMZ80cCtCXBml1XMllqlsDM\nzxWjtbHPY8VpI35+rtz7Qv5quXBpnKc0+kCB2KE8tPQhUy66oZjdgpMnM2Ye\ne8Vf4IiVZ5zv2qZL2dbUZWIkNnXBJKxfPPJTZLa3XHunkohIE4pJg3nB35Em\npmwAnAYxSqfIVqKjoQpNmvHuAmkbDqlLx3z6mGj56n18o1o2BIn65qPZP5cM\nyLpDin+mqD6ok1XU/JZuxhPZjnJNEFqw00xtg9yCIaGyMdchTrNKr9XDd2UG\nqbufLWBB/H2NSJv4UxMFlFRp9uAWut/3j2B+0xMqqonwPtppOJOHmfNF+O26\nzrTlPNsfz52eIpCTjyZ2a3wlUUwylOWlP1qIKy/zer3HZGQx4q3x8VqfkU6u\n9Nd73J+TquDmx6tXb5ONBZ+dXav5niovBapi2dDeOvl27EQzM7r3WRaB/D9M\nIMFu5zmmEwUFjhzzFmXMKeEcwZgiFtrxM51KevrddskVtrhJvUWeQGSHXgvO\nIDk/\r\n=l2Gn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCYfmYgwV6DdBRqn77xutu2gQc7HGFR95RkXSYnW33WxgIhANdHNT0wwkHiiDEgpKooFAdTUXsYPHk62s8SQrP+2FZI"}],"size":347222,"noattachment":false,"key":"/rollup-plugin-visualizer/-/rollup-plugin-visualizer-4.0.0.tgz"},"maintainers":[{"name":"btd","email":"bardadymchik@gmail.com"}],"_npmUser":{"name":"btd","email":"bardadymchik@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-visualizer_4.0.0_1584882279321_0.04774653038838217"},"_hasShrinkwrap":false,"publish_time":1584882279473,"_cnpm_publish_time":1584882279473,"dist-tags":{"beta":"4.0.0","latest":"7.1.1","prev":"6.0.11"}}