-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
49 lines (49 loc) · 2.08 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
"name": "maxmin",
"version": "0.2.2",
"description": "Get a pretty output of the original, minified, gzipped size of a string or buffer: 130 B → 91 B → 53 B (gzip)",
"license": "MIT",
"repository": {
"type": "git",
"url": "sindresorhus/maxmin"
},
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "http://sindresorhus.com"
},
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"test": "mocha"
},
"files": [
"index.js"
],
"keywords": [
"string",
"buffer",
"pretty",
"color",
"gzip",
"minified",
"min",
"max",
"diff",
"difference"
],
"devDependencies": {
"mocha": "*"
},
"dependencies": {
"chalk": "^0.5.0",
"figures": "^1.0.1",
"gzip-size": "^0.2.0",
"pretty-bytes": "^0.1.0"
},
"readme": "# maxmin [![Build Status](https://travis-ci.org/sindresorhus/maxmin.svg?branch=master)](https://travis-ci.org/sindresorhus/maxmin)\n\n> Get a pretty output of the original, minified, gzipped size of a string or buffer\n\n![](screenshot.png)\n\nUseful for logging the difference between original and minified file in e.g. a build-system.\n\n\n## Install\n\n```bash\n$ npm install --save maxmin\n```\n\n\n## Usage\n\n```js\nvar maxmin = require('maxmin');\n\nvar max = 'function smoothRangeRandom(min,max){var num=Math.floor(Math.random()*(max-min+1)+min);return this.prev=num===this.prev?++num:num};';\n\nvar min = '(function(b,c){var a=Math.floor(Math.random()*(c-b+1)+b);return this.a=a===this.a?++a:a})()';\n\nconsole.log(maxmin(max, min, true));\n//=> 130 B → 91 B → 53 B (gzip)\n```\n\n## API\n\n### maxmin(max, min, useGzip)\n\n#### max\n\n*Required* \nType: `String`|`Buffer` \n\nOriginal string.\n\n#### min\n\n*Required* \nType: `String`|`Buffer` \n\nMinified string.\n\n#### useGzip\n\nType: `Boolean` \nDefault: `false`\n\nShow gzipped size of `min`. Pretty slow.\n\n\n## License\n\n[MIT](http://opensource.org/licenses/MIT) © [Sindre Sorhus](http://sindresorhus.com)\n",
"readmeFilename": "readme.md",
"_id": "maxmin@0.2.2",
"_from": "maxmin@~0.2.0"
}