{"_id":"gulp-sizereport","_rev":"22-cd21006f9370e579fc6d2f7c9ef15ca2","name":"gulp-sizereport","description":"Display the size and gzipped size of your project, trigger alarm when file size is higher as expected","dist-tags":{"latest":"1.2.1"},"versions":{"1.0.0":{"name":"gulp-sizereport","version":"1.0.0","description":"Display the size and gzipped size of your project, trigger alarm when file size is higher as expected","license":"MIT","repository":{"type":"git","url":"https://github.com/jaysalvat/gulp-sizereport"},"author":{"name":"Jay Salvat","url":"http://jaysalvat.com"},"engines":{"node":">=0.10.0"},"files":["index.js"],"keywords":["gulpplugin","report","filesize","file","size","log","measure","inspect","debug","gzip"],"dependencies":{"chalk":"^0.5.1","cli-table":"^0.3.1","gulp-util":"^3.0.0","gzip-size":"^1.0.0","pretty-bytes":"^1.0.1","through2":"^0.6.1"},"bugs":{"url":"https://github.com/jaysalvat/gulp-sizereport/issues"},"homepage":"https://github.com/jaysalvat/gulp-sizereport","_id":"gulp-sizereport@1.0.0","dist":{"shasum":"3eeae8e79887ab66d5fef796c746f7d5f818f011","tarball":"https://registry.npmjs.org/gulp-sizereport/-/gulp-sizereport-1.0.0.tgz","integrity":"sha512-E6ml63yDfJibHL9oNMcTFXQJ4mh5EZN9Q218cjUNA2qOCWT1GfuAeXzDpZFdh3z6OGXm+uB91Iqxgv+0QRl5Mg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDDb3w6XYI4Z1O+DrYdrTa9Uqrt8r4SHagtbTw0xXOKTAiEAmML7O61jJ4mn+G1MCPSC7j4ugm0t1CRKQsKylaVdeSM="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"jaysalvat","email":"jay.salvat@gmail.com"},"maintainers":[{"name":"jaysalvat","email":"jay.salvat@gmail.com"}],"directories":{}},"1.0.1":{"name":"gulp-sizereport","version":"1.0.1","description":"Display the size and gzipped size of your project, trigger alarm when file size is higher as expected","license":"MIT","repository":{"type":"git","url":"https://github.com/jaysalvat/gulp-sizereport"},"author":{"name":"Jay Salvat","url":"http://jaysalvat.com"},"engines":{"node":">=0.10.0"},"files":["index.js"],"keywords":["gulpplugin","report","filesize","file","size","log","measure","inspect","debug","gzip"],"dependencies":{"chalk":"^0.5.1","cli-table":"^0.3.1","gulp-util":"^3.0.0","gzip-size":"^1.0.0","pretty-bytes":"^1.0.1","through2":"^0.6.1"},"bugs":{"url":"https://github.com/jaysalvat/gulp-sizereport/issues"},"homepage":"https://github.com/jaysalvat/gulp-sizereport","_id":"gulp-sizereport@1.0.1","dist":{"shasum":"143f0e4ba0030c23487dfe3dfb73f40df0736413","tarball":"https://registry.npmjs.org/gulp-sizereport/-/gulp-sizereport-1.0.1.tgz","integrity":"sha512-rsW3y68+pXWjLNazFiVGyiDCLjN70cbAMrvun1Y89aQEJC/QZW3mou2bSYjTp62Sg64/nrSRXS4pnxGlEWyWBA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEOX7RLggLiGX2hntV6JkM3CgjuDRTvoTd84mIKGdAEPAiEA2WAloPcpw3CWJc3UI4J2OjVYNDMaz/n0cypXi/8KBbo="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"jaysalvat","email":"jay.salvat@gmail.com"},"maintainers":[{"name":"jaysalvat","email":"jay.salvat@gmail.com"}],"directories":{}},"1.0.2":{"name":"gulp-sizereport","version":"1.0.2","description":"Display the size and gzipped size of your project, trigger alarm when file size is higher as expected","license":"MIT","repository":{"type":"git","url":"https://github.com/jaysalvat/gulp-sizereport"},"author":{"name":"Jay Salvat","url":"http://jaysalvat.com"},"engines":{"node":">=0.10.0"},"files":["index.js"],"keywords":["gulpplugin","report","filesize","file","size","log","measure","inspect","debug","gzip"],"dependencies":{"chalk":"^0.5.1","cli-table":"^0.3.1","gulp-util":"^3.0.0","gzip-size":"^1.0.0","pretty-bytes":"^1.0.1","through2":"^0.6.1"},"bugs":{"url":"https://github.com/jaysalvat/gulp-sizereport/issues"},"homepage":"https://github.com/jaysalvat/gulp-sizereport","_id":"gulp-sizereport@1.0.2","dist":{"shasum":"385ecec4e268173a8be865666c0de5053baa386e","tarball":"https://registry.npmjs.org/gulp-sizereport/-/gulp-sizereport-1.0.2.tgz","integrity":"sha512-P9G47syCGDCGvhrTLtGTOciaQazP1oXR5b52f6uBqVfhYBPTjccgESgWBa/tbLB3gQp/Z7qeBRpsY74Qza1ILw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICMPospm/QtLQAp3Z800Qt9VzxCWKY8DFCxMLSyb062JAiEAvfJpfEgAMnbRq0Ln7BjdXt5fdum7WMkZzUoXinCT5Sw="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"jaysalvat","email":"jay.salvat@gmail.com"},"maintainers":[{"name":"jaysalvat","email":"jay.salvat@gmail.com"}],"directories":{}},"1.1.2":{"name":"gulp-sizereport","version":"1.1.2","description":"Display the size and gzipped size of your project, trigger alarm when file size is higher as expected","license":"MIT","repository":{"type":"git","url":"https://github.com/jaysalvat/gulp-sizereport"},"author":{"name":"Jay Salvat","url":"http://jaysalvat.com"},"engines":{"node":">=0.10.0"},"files":["index.js"],"keywords":["gulpplugin","report","filesize","file","size","log","measure","inspect","debug","gzip"],"dependencies":{"chalk":"^0.5.1","cli-table":"^0.3.1","gulp-util":"^3.0.0","gzip-size":"^1.0.0","pretty-bytes":"^1.0.1","through2":"^0.6.1"},"bugs":{"url":"https://github.com/jaysalvat/gulp-sizereport/issues"},"homepage":"https://github.com/jaysalvat/gulp-sizereport","_id":"gulp-sizereport@1.1.2","dist":{"shasum":"b9f8d41378141d7d1700821431efdba57a402853","tarball":"https://registry.npmjs.org/gulp-sizereport/-/gulp-sizereport-1.1.2.tgz","integrity":"sha512-pe7CBEXvVdflgbfc8BdTwmWU3br4JtAHHad4SZ6aQXIIDVhEQeIJXy3bACKT6i27KxeUWC0MubhHOLVTGL2Igw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDFFAfK3sSH1FZK0ZWwoLmP9Oj6E22q0ecS/rg7T0js+gIgZ+Vpg4Y4U1A/jjJNxSYn7tjpjuwOVtfmr0BC1DwFg+8="}]},"_from":".","_npmVersion":"1.4.6","_npmUser":{"name":"jaysalvat","email":"jay.salvat@gmail.com"},"maintainers":[{"name":"jaysalvat","email":"jay.salvat@gmail.com"}],"directories":{}},"1.1.3":{"name":"gulp-sizereport","version":"1.1.3","description":"Display the size and gzipped size of your project, trigger alarm when file size is higher as expected","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jaysalvat/gulp-sizereport.git"},"author":{"name":"Jay Salvat","url":"http://jaysalvat.com"},"engines":{"node":">=0.10.0"},"files":["index.js"],"keywords":["gulpplugin","report","filesize","file","size","log","measure","inspect","debug","gzip"],"dependencies":{"cli-table":"^0.3.1","gulp-util":"^3.0.0","gzip-size":"^1.0.0","pretty-bytes":"^1.0.1","through2":"^0.6.1"},"gitHead":"39aba247c906b80b07125c60cef026d13feae9c9","bugs":{"url":"https://github.com/jaysalvat/gulp-sizereport/issues"},"homepage":"https://github.com/jaysalvat/gulp-sizereport#readme","_id":"gulp-sizereport@1.1.3","scripts":{},"_shasum":"26358b8a6cea8d98816c890aca6262a5a5dcd52c","_from":".","_npmVersion":"2.13.0","_nodeVersion":"2.4.0","_npmUser":{"name":"jaysalvat","email":"jay.salvat@gmail.com"},"dist":{"shasum":"26358b8a6cea8d98816c890aca6262a5a5dcd52c","tarball":"https://registry.npmjs.org/gulp-sizereport/-/gulp-sizereport-1.1.3.tgz","integrity":"sha512-H2ZhEuSKh9lBum2Bm/E+zOct1aZZP1zhQniXqAX3fk3rMIFe4zy1rN4j5D4nxVLWe82BxtYgeTLQqI8L8OavIw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYoMaBo25SYqUlFVvVEbYOl5IpZ/NV3jAOd6kg/+eOagIhAOp9QHLt5RDLJeU0SdEkqQD1PBT25xshZesOIMVlnQTr"}]},"maintainers":[{"name":"jaysalvat","email":"jay.salvat@gmail.com"}],"directories":{}},"1.2.0":{"name":"gulp-sizereport","version":"1.2.0","description":"Display the size and gzipped size of your project, trigger alarm when file size is higher as expected","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jaysalvat/gulp-sizereport.git"},"author":{"name":"Jay Salvat","url":"http://jaysalvat.com"},"engines":{"node":">=0.10.0"},"files":["index.js"],"keywords":["gulpplugin","report","filesize","file","size","log","measure","inspect","debug","gzip"],"dependencies":{"cli-table":"^0.3.1","gulp-util":"^3.0.7","gzip-size":"^3.0.0","pretty-bytes":"^3.0.1","through2":"^2.0.1"},"gitHead":"b9c22bd836ae5e4e543d823b54ded19e878af6ad","bugs":{"url":"https://github.com/jaysalvat/gulp-sizereport/issues"},"homepage":"https://github.com/jaysalvat/gulp-sizereport#readme","_id":"gulp-sizereport@1.2.0","scripts":{},"_shasum":"d8b7fa0f2365912521d16a387866857e6dcc4878","_from":".","_npmVersion":"3.8.6","_nodeVersion":"5.11.1","_npmUser":{"name":"jaysalvat","email":"jay.salvat@gmail.com"},"dist":{"shasum":"d8b7fa0f2365912521d16a387866857e6dcc4878","tarball":"https://registry.npmjs.org/gulp-sizereport/-/gulp-sizereport-1.2.0.tgz","integrity":"sha512-Y9/43lbg38p/gOm9LNdD29WRYip7vdv+r5Sma7CAbcj1C6eKcOao2yOoSTBLMbEo76fDREzGbzdtIxQxlzueKg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFp5kk0ElT3j3dobwhCw4F4xEuBmoeKGGl8y7YnUS5rNAiEAgkOGLlkaVSGgKmvp1/VYYj8KwFaOvoD7YFXRmntLBn8="}]},"maintainers":[{"name":"jaysalvat","email":"jay.salvat@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/gulp-sizereport-1.2.0.tgz_1471880152176_0.9203801902476698"},"directories":{}},"1.2.1":{"name":"gulp-sizereport","version":"1.2.1","description":"Display the size and gzipped size of your project, trigger alarm when file size is higher as expected","license":"MIT","repository":{"type":"git","url":"git+https://github.com/jaysalvat/gulp-sizereport.git"},"author":{"name":"Jay Salvat","url":"http://jaysalvat.com"},"engines":{"node":">=0.10.0"},"keywords":["gulpplugin","report","filesize","file","size","log","measure","inspect","debug","gzip"],"dependencies":{"ansi-colors":"^1.0.1","beeper":"^1.1.1","cli-table":"^0.3.1","gzip-size":"^3.0.0","plugin-error":"^1.0.0","pretty-bytes":"^3.0.1","through2":"^2.0.1"},"gitHead":"3ff899663e81c5d90e81469497d03cdd0fa5796c","bugs":{"url":"https://github.com/jaysalvat/gulp-sizereport/issues"},"homepage":"https://github.com/jaysalvat/gulp-sizereport#readme","_id":"gulp-sizereport@1.2.1","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"jaysalvat","email":"jay.salvat@gmail.com"},"dist":{"integrity":"sha512-thlt5LczraR7umuMLfpGo8XVUNxvU+PsSKWOrj41NjZnMeI4E9t4rLYc3eEAP20Sl1YhfxMER/SRz3udLldQVg==","shasum":"a6294accc14f1283dc457f976a8d3a87454cf40c","tarball":"https://registry.npmjs.org/gulp-sizereport/-/gulp-sizereport-1.2.1.tgz","fileCount":3,"unpackedSize":8490,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbsfATCRA9TVsSAnZWagAAN+sP/RdJnHtTQivDngi+Pxos\nNwq3ad5hyiSOAH9atHVUwsLA2aaZhBKZVw3p/cVHhrS5hXoxGEZKgWXY/Rqc\n8AOjPnsXy3/CTT+/270rkJQrWmAhLhPNjNh4Ya0d/BUkvBhUDb9OpZuxFtIp\ndN2zwu4hn6N3G8qCoDQhmOmR7NWCveX0RsihoWj6Pxdg1iFCLoYDInB6s2Jw\nse69wyKnHlLEKvLkOahlZOHUmSZ8dC9PxOx28DkLteBgsUJgtxun/PP3nCth\nM5AkvnbLzrMgTqmllG+Hhc1omguRouz6h3G9GIaMaQURe/1fiNGZwQqJet/r\nQErk8wY3OGyRCF2TdBvq4/h4/1pE9S4tu1Jle08/HyELJCsSAIHv/B2d/4Xj\n8I6nItyLlr1LEr12TE/E0qZAi5wdmU0QmK9dMKQAMLlduEHc8NS9ZQzuvoxL\nunF1bnHWyCUPhDStS37BeNBgBIVY6RZZjlaAFOwiaqcyIis2AWbPSuszSeZX\nyLje/4mlVu9pBPhODgKVSOWGBpfR/VKmDmFfr965QTwRSRqXGJmMcCT9tSdQ\ncmkHUOF9R7o/DFXPB3ROV3ybIe/VcEwtgkYeAlnQfIZJntz9fEwRyMEqAuIh\nawBcUHFdXKJQ+m0X1dvzw2wXXDPDoZDYAaVFXxuM4dOVcbLfb2+FulYUivYA\nsffE\r\n=O9F5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDUspsDb9YtiezuL03rglVLyMaXmq9P2yhiIxro1PmNAAiAiGY2AhIBVccrS4GvrsoocYTmE7i/0JgRPj+yY0Rawow=="}]},"maintainers":[{"name":"jaysalvat","email":"jay.salvat@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gulp-sizereport_1.2.1_1538387986703_0.41288439325581394"},"_hasShrinkwrap":false}},"readme":"# gulp-sizereport\n\n[![npm version](https://badge.fury.io/js/gulp-sizereport.svg)](http://badge.fury.io/js/gulp-sizereport)\n\nDisplay a report of the size and Gzipped size of your project and trigger alarms when the sizes are higher than expected.\n\n![Screenshot](https://raw.githubusercontent.com/jaysalvat/gulp-sizereport/master/screenshot0.png)\n\n## Install\n\n```sh\n$ npm install --save-dev gulp-sizereport\n```\n\n## Usage\n\nA simple usage\n\n```js\nvar gulp = require('gulp');\nvar sizereport = require('gulp-sizereport');\n\ngulp.task('sizereport', function () {\n\treturn gulp.src('./dist/*')\n\t\t.pipe(sizereport());\n});\n```\n\n![Screenshot](https://raw.githubusercontent.com/jaysalvat/gulp-sizereport/master/screenshot1.png)\n\n## Options\n\n- ``title`` (default: null)\nDisplay a title above the table.\n\n- ``total`` (default: true)\nDisplay the last total row.\n\n- ``gzip`` (default: false)\nToggle the Gzipped size column.\n\n- ``fail`` (default: false)\nAllows you to fail your Gulp task if a file exceeds a threshold.\n\n```js\nvar gulp = require('gulp');\nvar sizereport = require('gulp-sizereport');\n\ngulp.task('sizereport', function () {\n    return gulp.src('./dist/*')\n        .pipe(sizereport({\n            gzip: true\n        }));\n});\n```\n\n![Screenshot](https://raw.githubusercontent.com/jaysalvat/gulp-sizereport/master/screenshot2.png)\n\n- ``minifier`` (default: null)\nYou can add a minifier in order to control the minified size of your source.\n\n```js\nvar gulp = require('gulp');\nvar sizereport = require('gulp-sizereport');\nvar UglifyJS = require('uglify-js');\n\ngulp.task('sizereport', function () {\n    return gulp.src('./src/**/*.js')\n        .pipe(sizereport({\n            minifier: function (contents, filepath) {\n                if (filepath.match(/\\.min\\./g)) {\n                    return contents\n                }\n                return UglifyJS.minify(contents, { fromString: true }).code;\n            }\n        }));\n});\n```\n\n![Screenshot](https://raw.githubusercontent.com/jaysalvat/gulp-sizereport/master/screenshot3.png)\n\nIdeal to control the project size on the fly.\n\n```js\ngulp.task('watch', function () {\n    gulp.watch('./src/**/*.js', [ 'sizereport'] );\n});\n```\n\n## Alerts\n\nYou can place some alerts on values and files. The value is in Bytes.\n\n- ``maxSize``\n- ``maxGzippedSize``\n- ``maxMinifiedSize``\n- ``maxMinifiedGzippedSize``\n- ``maxTotalSize``\n- ``maxTotalGzippedSize``\n- ``maxTotalMinifiedSize``\n- ``maxTotalMinifiedGzippedSize``\n\n```js\nvar gulp = require('gulp');\nvar sizereport = require('gulp-sizereport');\nvar UglifyJS = require('uglify-js');\n\ngulp.task('sizereport', function () {\n    return gulp.src('./dist/*.js')\n        .pipe(sizereport({\n            gzip: true,\n            minifier: function (contents) {\n                return UglifyJS.minify(contents, { fromString: true }).code;\n            },\n            '*': {\n                'maxSize': 100000\n            },\n            'pin.js': {\n                'maxMinifiedSize': 5500,\n                'maxMinifiedGzippedSize': 2500\n            }\n        }));\n});\n```\n\n![Screenshot](https://raw.githubusercontent.com/jaysalvat/gulp-sizereport/master/screenshot4.png)\n","maintainers":[{"name":"jaysalvat","email":"jay.salvat@gmail.com"}],"time":{"modified":"2022-06-18T17:59:06.741Z","created":"2014-11-19T15:06:36.511Z","1.0.0":"2014-11-19T15:06:36.511Z","1.0.1":"2014-11-20T10:16:39.832Z","1.0.2":"2015-01-13T10:19:32.142Z","1.1.2":"2015-05-13T11:38:10.996Z","1.1.3":"2015-07-30T13:24:32.633Z","1.2.0":"2016-08-22T15:35:53.957Z","1.2.1":"2018-10-01T09:59:46.848Z"},"homepage":"https://github.com/jaysalvat/gulp-sizereport#readme","keywords":["gulpplugin","report","filesize","file","size","log","measure","inspect","debug","gzip"],"repository":{"type":"git","url":"git+https://github.com/jaysalvat/gulp-sizereport.git"},"author":{"name":"Jay Salvat","url":"http://jaysalvat.com"},"bugs":{"url":"https://github.com/jaysalvat/gulp-sizereport/issues"},"license":"MIT","readmeFilename":"README.md","users":{"charltoons":true,"unclesowise":true,"manny":true,"timdp":true,"joshukraine":true,"phritolay":true,"martijndevalk":true}}