{"_id":"grunt-filesize","_rev":"30-fdc9c33ec9f8672c3f12fc58b057b2f5","name":"grunt-filesize","description":"A Grunt plugin for logging filesize.","dist-tags":{"latest":"0.0.7"},"versions":{"0.0.1":{"author":{"name":"kazuhide maruyama"},"name":"grunt-filesize","description":"log filesize","version":"0.0.1","homepage":"https://github.com/k-maru/grunt-filesize","repository":{"type":"git","url":"git@github.com:k-maru/grunt-filesize.git"},"bugs":{"url":"https://github.com/k-maru/grunt-filesize/issues"},"licenses":[{"type":"MIT","url":"https://github.com/k-maru/grunt-filesize/blob/master/LICENSE"}],"main":"grunt.js","engines":{"node":"*"},"dependencies":{"grunt":"~0.3.9"},"devDependencies":{"grunt":"~0.3.9"},"optionalDependencies":{},"keywords":["gruntplugin"],"_id":"grunt-filesize@0.0.1","dist":{"shasum":"a725f474f1296288930937c6a865b9245bbbcf3b","tarball":"https://registry.npmjs.org/grunt-filesize/-/grunt-filesize-0.0.1.tgz","integrity":"sha512-1rC9ei7heCtSHyodTI8ZaX8SNhAyzFbgJyBZxW1fmnUK1AS1cOadU9Vr0QvvCk0Tjf86gHeU0B+8aAIiypEqxA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDZ8so7PqxSJYXeU5guQ7Cz3trvSJtAB0x26U1XdcQXagIgUoJmIV8WQc4fUx1ncrT4IQdfDgESL2FOyKgYMH8GE1o="}]},"_npmVersion":"1.1.49","_npmUser":{"name":"k-maru","email":"afurock@gmail.com"},"maintainers":[{"name":"k-maru","email":"afurock@gmail.com"}]},"0.0.4":{"name":"grunt-filesize","description":"A Grunt plugin for logging filesize.","version":"0.0.4","homepage":"https://github.com/k-maru/grunt-filesize","author":{"name":"kazuhide maruyama"},"repository":{"type":"git","url":"git://github.com/k-maru/grunt-filesize.git"},"bugs":{"url":"https://github.com/k-maru/grunt-filesize/issues"},"licenses":[{"type":"MIT","url":"https://github.com/k-maru/grunt-filesize/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.6.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.2"},"peerDependencies":{"grunt":"~0.4.2"},"keywords":["gruntplugin"],"_id":"grunt-filesize@0.0.4","dist":{"shasum":"f85e0d71fb704f1506319a3c4a16880e7bf737af","tarball":"https://registry.npmjs.org/grunt-filesize/-/grunt-filesize-0.0.4.tgz","integrity":"sha512-2YuIZXmthOdMdC6vWHwTOehFLMhONv1K4EsukDhCOzhSTZ7n7VHYAtMFiH7og152ukH4+O+GES6kw+AB3bCqbg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCfnA+h4ygsMW9/hoq3yI2yns8DIQRDKGhgeAbo7mCmYwIgYdc0THN6dCTiRmPEAJ0XRN/QehOdf1oLQBBA4DTpNEo="}]},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"k-maru","email":"afurock@gmail.com"},"maintainers":[{"name":"k-maru","email":"afurock@gmail.com"}]},"0.0.6":{"name":"grunt-filesize","description":"A Grunt plugin for logging filesize.","version":"0.0.6","homepage":"https://github.com/k-maru/grunt-filesize","author":{"name":"kazuhide maruyama"},"repository":{"type":"git","url":"git://github.com/k-maru/grunt-filesize.git"},"bugs":{"url":"https://github.com/k-maru/grunt-filesize/issues"},"licenses":[{"type":"MIT","url":"https://github.com/k-maru/grunt-filesize/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.6.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.2","numeral":"~1.5.3","moment":"~2.9.0"},"peerDependencies":{"grunt":"~0.4.2","numeral":"~1.5.3","moment":"~2.9.0"},"keywords":["gruntplugin"],"gitHead":"ac2a4b6492863c64cf8f0c621d63a3188e71336d","_id":"grunt-filesize@0.0.6","_shasum":"dbf4ded1de753b2bc28f76b8ea4ef18c2b583540","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"k-maru","email":"afurock@gmail.com"},"maintainers":[{"name":"k-maru","email":"afurock@gmail.com"}],"dist":{"shasum":"dbf4ded1de753b2bc28f76b8ea4ef18c2b583540","tarball":"https://registry.npmjs.org/grunt-filesize/-/grunt-filesize-0.0.6.tgz","integrity":"sha512-XU1qbnWUYvYSI+QhEyMWn+meIeDAVKvp3yhsUH0lYYLRJfbC+vZcSlYvhF7gURtXkawBSy42yYCDEI66OhsXkQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGMFGD9JFJZ8IJ0ZZCRx49XJTMK3koQWsYIXGjKy40l3AiBITG8GkofUu8+EloIJO3lMpX7JLwBrT0VBBNMuoqjQcg=="}]}},"0.0.7":{"name":"grunt-filesize","description":"A Grunt plugin for logging filesize.","version":"0.0.7","homepage":"https://github.com/k-maru/grunt-filesize","author":{"name":"kazuhide maruyama"},"repository":{"type":"git","url":"git://github.com/k-maru/grunt-filesize.git"},"bugs":{"url":"https://github.com/k-maru/grunt-filesize/issues"},"licenses":[{"type":"MIT","url":"https://github.com/k-maru/grunt-filesize/blob/master/LICENSE-MIT"}],"main":"Gruntfile.js","engines":{"node":">= 0.8.0"},"scripts":{"test":"grunt test"},"devDependencies":{"grunt-contrib-jshint":"~0.6.0","grunt-contrib-clean":"~0.4.0","grunt-contrib-nodeunit":"~0.2.0","grunt":"~0.4.2","numeral":"~1.5.3","moment":"~2.9.0"},"peerDependencies":{"grunt":"~0.4.2"},"dependencies":{"numeral":"~1.5.3","moment":"~2.9.0"},"keywords":["gruntplugin"],"gitHead":"1d7760eb441ca26d386bfb0cf4a9efc3422829f4","_id":"grunt-filesize@0.0.7","_shasum":"899d085f42f90e29d9ccebe2b8f43af3f92585d3","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"k-maru","email":"afurock@gmail.com"},"maintainers":[{"name":"k-maru","email":"afurock@gmail.com"}],"dist":{"shasum":"899d085f42f90e29d9ccebe2b8f43af3f92585d3","tarball":"https://registry.npmjs.org/grunt-filesize/-/grunt-filesize-0.0.7.tgz","integrity":"sha512-dtpkfIs0gkfq1NS9ho/iyV9r/jCbtHxIjosoXXvce/rYd/xu76ULOoD7gkGcaepNWPbytFUCHt0uxE5roMhpKQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDjwHuuzpDXamyhxUOnpVLRMOpCZzITuX7UKe3dTodWzAIgHvj/4WZ/xw8baUWWNZm1qE85Wh2IhrTOowTntTKlg94="}]}}},"readme":"# grunt-filesize\r\n\r\nA Grunt plugin for logging filesize.\r\n\r\n## Documentation\r\nmodify your `grunt.js` file by adding the following line:\r\n\r\n```\r\ngrunt.loadNpmTasks('grunt-filesize');\r\n```\r\n\r\nThen add some configuration for the plugin like so:\r\n\r\n```js\r\ngrunt.initConfig({\r\n  ...\r\n  filesize: {\r\n    base: {\r\n      files: [\r\n        {expand: true, cwd: 'build', src: ['*.css', '*.js']}\r\n      ],\r\n      options: {\r\n        ouput: [\r\n          {\r\n            stdout: true\r\n          },\r\n          {\r\n            path: \"output/file/{now:MMMDDYYYY}.csv\",\r\n            format: {filename},{size:0,0}\r\n          },\r\n          {\r\n            path: \"output/file/filename.txt\",\r\n            format: \"{now:YYYY/MM/DD} {filename} {mb} mb\",\r\n            append: true\r\n          }\r\n        ]\r\n      }\r\n    }\r\n  },\r\n  ...\r\n});\r\n```\r\n\r\n## Options\r\n\r\n### format(string | function) not required.\r\n\r\nSpecify the format of the file to be output.\r\n\r\nSpecify the format in the placeholder if you have set in the String. Possible placeholder is as follows.\r\n\r\n|placeholder |type   |description             |\r\n|------------|-------|------------------------|\r\n|fullpath    |string |full absolute file path |\r\n|filename    |string |file name               |\r\n|basename    |string |last portion of a path  |\r\n|size        |number |file size (bytes)       |\r\n|kb          |number |file size (kb)          |\r\n|mb          |number |file size (mb)          |\r\n|now         |date   |output date             |\r\n\r\nPlaceholder I enclosed in curly braces. It is possible to specify the color and format. Color is valid only if the standard output.\r\n\r\ne.g.\r\n```\r\n{property,color:format}\r\n```\r\n\r\nColor specification the contents of the [colors](https://www.npmjs.com/package/colors) can be specified.\r\nFormat specification can be specified only in the date type or numeric type.\r\nDate type format use the [moment](https://www.npmjs.com/package/moment).\r\nNumber type format use the [numeral](https://www.npmjs.com/package/numeral).\r\n\r\n### output(array | string) not required.\r\n\r\nOutput options is specify the output destination and format.\r\n\r\nPossible property is as follows.\r\n\r\n|ploperty  |type            |description                                                            |\r\n|----------|----------------|-----------------------------------------------------------------------|\r\n|stdout    |bool            |output to console. If true is specified, the path property is ignored. |\r\n|path      |string          |output file name. You can specify the place holder.                    |\r\n|append    |bool            |Append the results to output file.                                     |\r\n|format    |string,function |Same format option                                                     |\r\n\r\n### reporting(function) not required.\r\n\r\nObsolete.\r\n\r\nSetting the 'reporting' option will generate a properties file on the given path for each file measured, you can use those in the Jenkins Plot plugin or other ways.\r\n\r\ne.g.\r\n\r\n```js\r\noptions: {\r\n  reporting: function (filePath) {\r\n    return 'target/grunt/filesize/' + filePath + '.txt';\r\n  }\r\n},\r\n```","maintainers":[{"name":"k-maru","email":"afurock@gmail.com"}],"time":{"modified":"2022-06-18T15:00:20.629Z","created":"2012-11-24T06:40:21.820Z","0.0.1":"2012-11-24T06:40:24.723Z","0.0.2":"2013-12-19T15:16:10.262Z","0.0.5":"2014-04-04T10:14:09.879Z","0.0.4":"2014-04-04T11:00:04.429Z","0.0.6":"2015-01-12T16:01:54.102Z","0.0.7":"2015-01-12T16:17:51.949Z"},"author":{"name":"kazuhide maruyama"},"repository":{"type":"git","url":"git://github.com/k-maru/grunt-filesize.git"},"homepage":"https://github.com/k-maru/grunt-filesize","keywords":["gruntplugin"],"bugs":{"url":"https://github.com/k-maru/grunt-filesize/issues"},"readmeFilename":"README.md"}