Socket
Socket
Sign inDemoInstall

gifsicle

Package Overview
Dependencies
Maintainers
6
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gifsicle - npm Package Compare versions

Comparing version 3.0.4 to 4.0.0

9

cli.js
#!/usr/bin/env node
'use strict';
var spawn = require('child_process').spawn;
var gifsicle = require('./');
const execa = require('execa');
const m = require('.');
var input = process.argv.slice(2);
spawn(gifsicle, input, {stdio: 'inherit'})
.on('exit', process.exit);
execa(m, process.argv.slice(2), {stdio: 'inherit'});
'use strict';
var path = require('path');
var BinWrapper = require('bin-wrapper');
var pkg = require('../package.json');
const path = require('path');
const BinWrapper = require('bin-wrapper');
const pkg = require('../package.json');
var url = 'https://raw.githubusercontent.com/imagemin/gifsicle-bin/v' + pkg.version + '/vendor/';
const url = `https://raw.githubusercontent.com/imagemin/gifsicle-bin/v${pkg.version}/vendor/`;
module.exports = new BinWrapper()
.src(url + 'macos/gifsicle', 'darwin')
.src(url + 'linux/x86/gifsicle', 'linux', 'x86')
.src(url + 'linux/x64/gifsicle', 'linux', 'x64')
.src(url + 'freebsd/x86/gifsicle', 'freebsd', 'x86')
.src(url + 'freebsd/x64/gifsicle', 'freebsd', 'x64')
.src(url + 'win/x86/gifsicle.exe', 'win32', 'x86')
.src(url + 'win/x64/gifsicle.exe', 'win32', 'x64')
.src(`${url}macos/gifsicle`, 'darwin')
.src(`${url}linux/x86/gifsicle`, 'linux', 'x86')
.src(`${url}linux/x64/gifsicle`, 'linux', 'x64')
.src(`${url}freebsd/x86/gifsicle`, 'freebsd', 'x86')
.src(`${url}freebsd/x64/gifsicle`, 'freebsd', 'x64')
.src(`${url}win/x86/gifsicle.exe`, 'win32', 'x86')
.src(`${url}win/x64/gifsicle.exe`, 'win32', 'x64')
.dest(path.join(__dirname, '../vendor'))
.use(process.platform === 'win32' ? 'gifsicle.exe' : 'gifsicle');
'use strict';
var BinBuild = require('bin-build');
var log = require('logalot');
var bin = require('./');
const binBuild = require('bin-build');
const log = require('logalot');
const bin = require('.');
bin.run(['--version'], function (err) {
bin.run(['--version'], err => {
if (err) {

@@ -12,21 +12,21 @@ log.warn(err.message);

var cfg = [
const cfg = [
'./configure --disable-gifview --disable-gifdiff',
'--prefix="' + bin.dest() + '" --bindir="' + bin.dest() + '"'
`--prefix="${bin.dest()}" --bindir="${bin.dest()}"`
].join(' ');
var builder = new BinBuild()
.src('https://github.com/kohler/gifsicle/archive/v1.88.tar.gz')
.cmd('autoreconf -ivf')
.cmd(cfg)
.cmd('make install');
binBuild.url('https://github.com/kohler/gifsicle/archive/v1.90.tar.gz', [
'autoreconf -ivf',
cfg,
'make install'
])
.then(() => {
log.success('gifsicle built successfully');
})
.catch(error => {
log.error(error.stack);
return builder.run(function (err) {
if (err) {
log.error(err.stack);
return;
}
log.success('gifsicle built successfully');
});
// eslint-disable-next-line unicorn/no-process-exit
process.exit(1);
});
}

@@ -33,0 +33,0 @@

{
"name": "gifsicle",
"version": "3.0.4",
"description": "gifsicle wrapper that makes it seamlessly available as a local dependency",
"license": "MIT",
"repository": "imagemin/gifsicle-bin",
"author": {
"name": "Kevin Martensson",
"email": "kevinmartensson@gmail.com",
"url": "github.com/kevva"
},
"maintainers": [
{
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
{
"name": "Shinnosuke Watanabe",
"url": "github.com/shinnn"
}
],
"engines": {
"node": ">=0.10.0"
},
"bin": "cli.js",
"scripts": {
"postinstall": "node lib/install.js",
"test": "xo && mocha --timeout 50000"
},
"files": [
"index.js",
"cli.js",
"lib"
],
"keywords": [
"gif",
"img",
"image",
"compress",
"minify",
"optimize"
],
"dependencies": {
"bin-build": "^2.0.0",
"bin-wrapper": "^3.0.0",
"logalot": "^2.0.0"
},
"devDependencies": {
"bin-check": "^2.0.0",
"compare-size": "^1.0.0",
"mkdirp": "^0.5.0",
"mocha": "^2.2.4",
"rimraf": "^2.3.2",
"xo": "*"
}
"name": "gifsicle",
"version": "4.0.0",
"description": "gifsicle wrapper that makes it seamlessly available as a local dependency",
"license": "MIT",
"repository": "imagemin/gifsicle-bin",
"author": {
"name": "Kevin Martensson",
"email": "kevinmartensson@gmail.com",
"url": "github.com/kevva"
},
"maintainers": [
{
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
{
"name": "Shinnosuke Watanabe",
"url": "github.com/shinnn"
}
],
"bin": "cli.js",
"engines": {
"node": ">=6"
},
"scripts": {
"postinstall": "node lib/install.js",
"test": "xo && ava"
},
"files": [
"index.js",
"cli.js",
"lib"
],
"keywords": [
"imagemin",
"gif",
"img",
"image",
"compress",
"minify",
"optimize",
"gifsicle"
],
"dependencies": {
"bin-build": "^3.0.0",
"bin-wrapper": "^4.0.0",
"execa": "^1.0.0",
"logalot": "^2.0.0"
},
"devDependencies": {
"ava": "*",
"bin-check": "^4.0.1",
"compare-size": "^3.0.0",
"tempy": "^0.2.1",
"xo": "*"
}
}

@@ -5,7 +5,9 @@ # gifsicle-bin [![Build Status](https://travis-ci.org/imagemin/gifsicle-bin.svg?branch=master)](https://travis-ci.org/imagemin/gifsicle-bin)

You probably want [`imagemin-gifsicle`](https://github.com/imagemin/imagemin-gifsicle) instead.
## Install
```
$ npm install --save gifsicle
$ npm install gifsicle
```

@@ -39,2 +41,2 @@

MIT © [imagemin](https://github.com/imagemin)
MIT © [Imagemin](https://github.com/imagemin)

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc