first commit
This commit is contained in:
9
build/node_modules/jpeg-recompress-bin/cli.js
generated
vendored
Executable file
9
build/node_modules/jpeg-recompress-bin/cli.js
generated
vendored
Executable file
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env node
|
||||
'use strict';
|
||||
|
||||
var spawn = require('child_process').spawn;
|
||||
var jpegRecompress = require('./');
|
||||
var input = process.argv.slice(2);
|
||||
|
||||
spawn(jpegRecompress, input, {stdio: 'inherit'})
|
||||
.on('exit', process.exit);
|
||||
2
build/node_modules/jpeg-recompress-bin/index.js
generated
vendored
Normal file
2
build/node_modules/jpeg-recompress-bin/index.js
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
'use strict';
|
||||
module.exports = require('./lib').path();
|
||||
13
build/node_modules/jpeg-recompress-bin/lib/index.js
generated
vendored
Normal file
13
build/node_modules/jpeg-recompress-bin/lib/index.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
var path = require('path');
|
||||
var BinWrapper = require('bin-wrapper');
|
||||
var pkg = require('../package.json');
|
||||
var url = 'https://raw.github.com/imagemin/jpeg-recompress-bin/v' + pkg.version + '/vendor/';
|
||||
|
||||
module.exports = new BinWrapper()
|
||||
.src(url + 'osx/jpeg-recompress', 'darwin')
|
||||
.src(url + 'linux/jpeg-recompress', 'linux')
|
||||
.src(url + 'win/jpeg-recompress.exe', 'win32')
|
||||
.dest(path.join(__dirname, '../vendor'))
|
||||
.use(process.platform === 'win32' ? 'jpeg-recompress.exe' : 'jpeg-recompress');
|
||||
13
build/node_modules/jpeg-recompress-bin/lib/install.js
generated
vendored
Normal file
13
build/node_modules/jpeg-recompress-bin/lib/install.js
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
var log = require('logalot');
|
||||
var bin = require('./');
|
||||
|
||||
bin.run(['--version'], function (err) {
|
||||
if (err) {
|
||||
log.error(err.stack);
|
||||
return;
|
||||
}
|
||||
|
||||
log.success('jpeg-recompress pre-build test passed successfully');
|
||||
});
|
||||
21
build/node_modules/jpeg-recompress-bin/license
generated
vendored
Normal file
21
build/node_modules/jpeg-recompress-bin/license
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) imagemin
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
82
build/node_modules/jpeg-recompress-bin/package.json
generated
vendored
Normal file
82
build/node_modules/jpeg-recompress-bin/package.json
generated
vendored
Normal file
@@ -0,0 +1,82 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"jpeg-recompress-bin@3.0.1",
|
||||
"/Users/asciidisco/Desktop/asciidisco.com/build"
|
||||
]
|
||||
],
|
||||
"_from": "jpeg-recompress-bin@3.0.1",
|
||||
"_id": "jpeg-recompress-bin@3.0.1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-RqPnMAzKt5WxuNsnroAsJ6KDM6Q=",
|
||||
"_location": "/jpeg-recompress-bin",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "jpeg-recompress-bin@3.0.1",
|
||||
"name": "jpeg-recompress-bin",
|
||||
"escapedName": "jpeg-recompress-bin",
|
||||
"rawSpec": "3.0.1",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "3.0.1"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/imagemin-jpeg-recompress"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/jpeg-recompress-bin/-/jpeg-recompress-bin-3.0.1.tgz",
|
||||
"_spec": "3.0.1",
|
||||
"_where": "/Users/asciidisco/Desktop/asciidisco.com/build",
|
||||
"author": {
|
||||
"name": "1000ch",
|
||||
"email": "shogo.sensui@gmail.com",
|
||||
"url": "http://github.com/1000ch"
|
||||
},
|
||||
"bin": {
|
||||
"jpeg-recompress": "cli.js"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/imagemin/jpeg-recompress-bin/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"bin-wrapper": "^3.0.0",
|
||||
"logalot": "^2.0.0"
|
||||
},
|
||||
"description": "jpeg-recompress wrapper that makes it seamlessly available as a local dependency",
|
||||
"devDependencies": {
|
||||
"bin-check": "^1.0.0",
|
||||
"compare-size": "^1.0.1",
|
||||
"mkdirp": "^0.5.0",
|
||||
"mocha": "^2.2.4",
|
||||
"rimraf": "^2.2.8"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"cli.js",
|
||||
"index.js",
|
||||
"lib"
|
||||
],
|
||||
"homepage": "https://github.com/imagemin/jpeg-recompress-bin#readme",
|
||||
"keywords": [
|
||||
"compress",
|
||||
"image",
|
||||
"img",
|
||||
"jpeg",
|
||||
"jpg",
|
||||
"minify",
|
||||
"optimize"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "jpeg-recompress-bin",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/imagemin/jpeg-recompress-bin.git"
|
||||
},
|
||||
"scripts": {
|
||||
"postinstall": "node lib/install.js",
|
||||
"test": "mocha --timeout 20000"
|
||||
},
|
||||
"version": "3.0.1"
|
||||
}
|
||||
38
build/node_modules/jpeg-recompress-bin/readme.md
generated
vendored
Normal file
38
build/node_modules/jpeg-recompress-bin/readme.md
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
# jpeg-recompress-bin [](https://travis-ci.org/imagemin/jpeg-recompress-bin) [](https://ci.appveyor.com/project/ShinnosukeWatanabe/jpeg-recompress-bin)
|
||||
|
||||
> Compress JPEGs by re-encoding to the smallest JPEG quality while keeping perceived visual quality the same and by making sure huffman tables are optimized
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save jpeg-recompress-bin
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var execFile = require('child_process').execFile;
|
||||
var jpegRecompress = require('jpeg-recompress-bin');
|
||||
|
||||
execFile(jpegRecompress, ['--quality high', '--min 60', 'input.jpg', 'output.jpg'], function (err) {
|
||||
console.log('Image minified');
|
||||
});
|
||||
```
|
||||
|
||||
|
||||
## CLI
|
||||
|
||||
```
|
||||
$ npm install --global jpeg-recompress-bin
|
||||
```
|
||||
|
||||
```
|
||||
$ jpeg-recompress --help
|
||||
```
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [imagemin](https://github.com/imagemin)
|
||||
BIN
build/node_modules/jpeg-recompress-bin/vendor/jpeg-recompress
generated
vendored
Executable file
BIN
build/node_modules/jpeg-recompress-bin/vendor/jpeg-recompress
generated
vendored
Executable file
Binary file not shown.
Reference in New Issue
Block a user