-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
57 lines (57 loc) · 2.9 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
{
"name": "jpegtran-bin",
"version": "0.1.7",
"description": "jpegtran (part of libjpeg-turbo) wrapper that makes it seamlessly available as a local dependency on OS X, Linux and Windows. Most commonly used to losslessly minify JPEG images.",
"keywords": [
"jpeg",
"jpg",
"img",
"image",
"compress",
"minify",
"optimize"
],
"homepage": "https://github.com/yeoman/node-jpegtran-bin",
"bugs": "https://github.com/yeoman/node-jpegtran-bin/issues",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "http://sindresorhus.com"
},
"maintainers": [
{
"name": "Duncan Wong"
}
],
"main": "lib/jpegtran-bin.js",
"bin": {
"jpegtran-bin": "bin/jpegtran-bin"
},
"repository": {
"type": "git",
"url": "git://github.com/yeoman/node-jpegtran-bin.git"
},
"scripts": {
"test": "mocha",
"postinstall": "node pre-build.js"
},
"engines": {
"node": ">=0.8.0"
},
"licenses": [
{
"type": "BSD"
}
],
"dependencies": {
"colors": "~0.6.0",
"which": "~1.0.5",
"mocha": "~1.9.0",
"tar": "~0.1.17",
"request": "~2.16.6"
},
"readme": "# node-jpegtran-bin [![Build Status](https://secure.travis-ci.org/yeoman/node-jpegtran-bin.png?branch=master)](http://travis-ci.org/yeoman/node-jpegtran-bin)\n\njpegtran 1.2.90 (part of [libjpeg-turbo](http://libjpeg-turbo.virtualgl.org/)) Node.js wrapper that makes it seamlessly available as a local dependency on OS X, Linux and Windows. Most commonly used to losslessly minify JPEG images.\n\n> libjpeg-turbo is a derivative of libjpeg that uses SIMD instructions (MMX, SSE2, NEON) to accelerate baseline JPEG compression and decompression on x86, x86-64, and ARM systems. On such systems, libjpeg-turbo is generally 2-4x as fast as the unmodified version of libjpeg, all else being equal.\n\n\n## Example usage\n\n```js\nvar execFile = require('child_process').execFile;\nvar jpegtranPath = require('jpegtran-bin').path;\n\nexecFile(jpegtranPath, ['-outfile', 'output.jpg', 'input.jpg'], function(err, stdout, stderr) {\n\tconsole.log('Image minified');\n});\n```\n\nYou can also run directly from `./node_modules/.bin/jpegtran-bin`\n\n\n## Dev\n\nNote to self on how to update the binaries.\n\n### OS X and Linux\n\nRun `npm install` to build the binary.\n\n### Windows\n\n- Download the [Windows files 32/64-bit](http://sourceforge.net/projects/libjpeg-turbo/files/) (GCC compiled) on a Windows machine\n- Run the downloaded file to extract\n- Go to the `bin` folder at the destination and copy `jpegtran.exe` and `libjpeg-62.dll`\n\n\n## License\n\nEverything excluding the binaries licensed under the [BSD license](http://opensource.org/licenses/bsd-license.php) and copyright Google.\n\nlibjpeg-turbo licensed under the BSD license and copyright dcommander.\n",
"readmeFilename": "readme.md",
"_id": "jpegtran-bin@0.1.7",
"_from": "jpegtran-bin@~0.1.0"
}