-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
68 lines (68 loc) · 3.68 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
61
62
63
64
65
66
67
68
{
"name": "jpegtran-bin",
"version": "0.2.6",
"description": "jpegtran (part of libjpeg-turbo) wrapper that makes it seamlessly available as a local dependency on OS X, Linux, FreeBSD, Solaris 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": {
"url": "https://github.com/yeoman/node-jpegtran-bin/issues"
},
"license": "BSD",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "http://sindresorhus.com"
},
"maintainers": [
{
"name": "Kevin Martensson",
"email": "kevinmartensson@gmail.com",
"url": "http://kevinmartensson.com"
}
],
"main": "index.js",
"bin": {
"jpegtran": "cli.js"
},
"repository": {
"type": "git",
"url": "git://github.com/yeoman/node-jpegtran-bin.git"
},
"scripts": {
"test": "mocha --reporter list --timeout 0",
"postinstall": "node index.js"
},
"engines": {
"node": ">=0.10.0"
},
"dependencies": {
"bin-wrapper": "~0.2.0",
"chalk": "~0.4.0"
},
"devDependencies": {
"bin-check": "~0.1.0",
"mocha": "~1.18.2",
"rimraf": "~2.2.6"
},
"files": [
"cli.js",
"index.js",
"test"
],
"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.3 (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, FreeBSD, Solaris 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## Install\n\n- Install with [npm](https://npmjs.org/package/jpegtran-bin): `npm install --save jpegtran-bin`\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() {\n console.log('Image minified');\n});\n```\n\nCan also be run directly from `./node_modules/.bin/jpegtran`.\n\n\n## Dev\n\nNote to self on how to update the binaries.\n\n### OS X and Linux\n\n- Run `npm install` to build the binary.\n\nThe `nasm` (Netwide Assember) package is required to build the binary on Ubuntu.\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\n (current version 1.3.0, x64 `libjpeg-turbo-1.3.0-gcc64.exe` and for x86 `libjpeg-turbo-1.3.0-gcc.exe`)\n- Run the downloaded file to extract\n- In the extracted folder go to the `bin` folder and copy `jpegtran.exe` and `libjpeg-62.dll` to `jpegtran-bin\\vendor\\` folder\n \n (for `grunt-contrib-imagemin` the folder is `grunt-contrib-imagemin\\node_modules\\jpegtran-bin\\vendor\\`)\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.2.6",
"dist": {
"shasum": "968a78533b6a3d509d5455e00e5b2e143fc43375"
},
"_from": "jpegtran-bin@~0.2.0",
"_resolved": "http://registry.npmjs.org/jpegtran-bin/-/jpegtran-bin-0.2.6.tgz"
}