-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
executable file
·60 lines (60 loc) · 2.76 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
50
51
52
53
54
55
56
57
58
59
60
{
"name": "pngquant-bin",
"version": "0.1.5",
"description": "pngquant wrapper that makes it seamlessly available as a local dependency on OS X, Linux and Windows",
"keywords": [
"png",
"img",
"image",
"compress",
"minify",
"optimize"
],
"homepage": "https://github.com/sindresorhus/node-pngquant-bin",
"bugs": {
"url": "https://github.com/sindresorhus/node-pngquant-bin/issues"
},
"license": "MIT",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "http://sindresorhus.com"
},
"contributors": [
{
"name": "Kevin Martensson",
"email": "kevinmartensson@gmail.com",
"url": "http://kevinmartensson.com"
}
],
"files": [
"bin",
"lib"
],
"main": "lib/pngquant",
"bin": {
"pngquant": "bin/pngquant.js"
},
"repository": {
"type": "git",
"url": "git://github.com/sindresorhus/node-pngquant-bin.git"
},
"scripts": {
"test": "mocha",
"postinstall": "node lib/check.js"
},
"dependencies": {
"bin-wrapper": "~0.1.3",
"chalk": "~0.2.0"
},
"devDependencies": {
"mocha": "~1.13.0"
},
"engines": {
"node": ">=0.8.0"
},
"readme": "# node-pngquant-bin [![Build Status](https://secure.travis-ci.org/sindresorhus/node-pngquant-bin.png?branch=master)](http://travis-ci.org/sindresorhus/node-pngquant-bin)\n\n[pngquant](http://pngquant.org) 1.8.4 Node.js wrapper that makes it seamlessly available as a local dependency on OS X, Linux and Windows.\n\n> pngquant is a command-line utility for converting 24/32-bit PNG images to paletted (8-bit) PNGs. The conversion reduces file sizes significantly (often as much as 70%) and preserves full alpha transparency.\n\n\n## Install\n\n- Install with [npm](https://npmjs.org/package/pngquant-bin): `npm install --save pngquant-bin`\n\n\n## Example usage\n\n```js\nvar execFile = require('child_process').execFile;\nvar binPath = require('pngquant-bin').path;\n\nexecFile(binPath, ['input.png'], function() {\n\tconsole.log('Image minified');\n});\n```\n\nCan also be run directly from `./node_modules/.bin/pngquant`.\n\n\n## Dev\n\nNote to self on how to update the binaries.\n\n### OS X\n\n- Run `npm install` on a OS X 10.7 machine to build the binary.\n\n### Linux\n\n- Install dependencies by running `sudo apt-get install build-essential libpng-dev zlib1g-dev`.\n- Run `npm install` to build the binary.\n\n### Windows\n\n- Download the [Windows binary](http://pngquant.org/pngquant-windows.zip) and put it in `vendor/win/`.\n\n\n## License\n\nEverything except binaries: MIT License • © [Sindre Sorhus](http://sindresorhus.com)\n\ngifsicle licensed under the GNU General Public License, Version 2.\n",
"readmeFilename": "readme.md",
"_id": "pngquant-bin@0.1.5",
"_from": "pngquant-bin@~0.1.0"
}