{"name":"@atomico/rollup-plugin-sizes","version":"1.0.0","description":"This small utility allows you to monitor the size of the bundle","main":"index.js","source":"src/index.js","publishConfig":{"access":"public"},"scripts":{"build":"rollup -c ","prepare":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/atomicojs/rollup-plugin-sizes.git"},"keywords":["css","shadowDom","jsx"],"author":{"name":"Uppercod"},"license":"ISC","devDependencies":{"rollup":"^1.12.1"},"bugs":{"url":"https://github.com/atomicojs/rollup-plugin-sizes/issues"},"homepage":"https://github.com/atomicojs/rollup-plugin-sizes#readme","_id":"@atomico/rollup-plugin-sizes@1.0.0","_nodeVersion":"11.13.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-58bkszmCbiQGm0wOWceaaGvnEsl90UiX9dN0WALrkFQjF2obs60jNy9p/OJRc9HFSsGDfasoKLIThzrqIIovVA==","shasum":"5e0cc2dbab6ddb0c889a5eaa06a3fbd9b310be31","tarball":"http://registry-npm.ywwl.com/@atomico/rollup-plugin-sizes/download/@atomico/rollup-plugin-sizes-1.0.0.tgz","fileCount":6,"unpackedSize":5499,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc6OPuCRA9TVsSAnZWagAAIfAP/RdAMZGAXq+iCVwJwT96\nzgjJNbAEA7F7/f1z+hLf6HaQsVPZqMqnJo2edeulDZcVo0oT34SegbS8AG6l\nfjSXRtlpTcOXNcD7UOu9/64FEXDoQPJAp8so70HVdubQQHWcwZ+mZAAZdv3L\nsANQyZFde6o6p3I4cz/F2Or0peS6QKdUGm/gnztrR3/dCtGKoFMLO4cbVVch\nyJOW1cEBFD62VhupnZUxpg71ju0UYhSVgOd0ZVz5BHzxC8RNLND+fzh7W6Vm\nmqw+bQeLOX67FCGCU1FWzDUb0YXzsBOAMJSYhmYtqwJJn4XkifHgCor7uRH/\n62KQSnwnN37/zbDTcSm32k+dudDO1AskuSdB7WFjz0NJuqg+fsZDpkTMjaZZ\nHi1KTESs1DIsvtP1DOYOTOB9f4hx41+ICo+nW0xva2XipH/fUuGR9Vu61IVp\nyle9Iz/3hPxXk5J3JgQLTIBd3ec57EJdLS/kEBSmwaHYJLxRgzPyyRHplAFF\n7tq6lEqFCRuyirXLaFGBWmCAEVY1PJ3oUgl7VXKeLGrD2AJS9RFk2dDDlQ8B\nkIlXwHTbPVVFF0a5Ov/1nPiqC2G4FW6N+0Rmhij/gEqhs8SizivW9g0meY5+\nIibbxN6D7Bp+fCkM7MPXiYXL1DS7DmHRdhtCCjWu0/LKiJWB52dIHMpZTZPJ\n2AQF\r\n=FcIV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF5Jgu7vR9lkqcLGM39hs9HiRj3N87y4EYBiBIKxWh2mAiEAhvpRWb3PoTN3P5++NYIoOZ2geb/7tL72LrepC0vGs9U="}],"size":2397,"noattachment":false,"key":"/@atomico/rollup-plugin-sizes/-/@atomico/rollup-plugin-sizes-1.0.0.tgz"},"maintainers":[{"name":"uppercod","email":"mtrujillo@outlook.cl"}],"_npmUser":{"name":"uppercod","email":"mtrujillo@outlook.cl"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rollup-plugin-sizes_1.0.0_1558766573601_0.532539049665192"},"_hasShrinkwrap":false,"readme":"# @atomico/rollup-plugin-sizes\r\n\r\nThis small utility allows you to monitor the size of the bundle as it is generated by rollup, generating a record by console, the size of both in gzip and brotli.\r\n\r\n![example](https://res.cloudinary.com/dz0i8dmpt/image/upload/v1558889910/github/rollup-plugin-sizes/Grupo_2.png)\r\n\r\n```js\r\nimport sizes from \"@atomico/rollup-plugins-sizes\";\r\n\r\nexport default {\r\n  input: /*...*/,\r\n  output: /*...*/,\r\n  plugins: [\r\n    sizes(10)//10 === 10kb\r\n  ]\r\n};\r\n```\r\n\r\nAdditionally you can give `sizes(limit:number|string)` a first parameter capable of generating alerts by console, example `size(1.2)`, **this parameter will always represent KB**.\r\n\r\n1.  if it exceeds the limit, the file will be printed in red.\r\n2.  If it approaches 90% of the limit, it will be printed in yellow.\r\n3.  if it does not fulfill the 2 previous conditions, it is printed in green.\r\n\r\n> compatible with dynamic rollup import\r\n","publish_time":1558766573784,"_cnpm_publish_time":1558766573784,"dist-tags":{"latest":"1.1.4"}}