Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cwebp-bin

Package Overview
Dependencies
Maintainers
6
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cwebp-bin - npm Package Compare versions

Comparing version 4.0.0 to 5.0.0

2

cli.js
#!/usr/bin/env node
'use strict';
const spawn = require('child_process').spawn;
const {spawn} = require('child_process');
const binPath = require('.');

@@ -5,0 +5,0 @@

'use strict';
const BinBuild = require('bin-build');
const binBuild = require('bin-build');
const log = require('logalot');
const bin = require('.');
bin.run(['-version'], err => {
if (err) {
log.warn(err.message);
log.warn('cwebp pre-build test failed');
log.info('compiling from source');
bin.run(['-version']).then(() => {
log.success('cwebp pre-build test passed successfully');
}).catch(error => {
log.warn(error.message);
log.warn('cwebp pre-build test failed');
log.info('compiling from source');
const builder = new BinBuild()
.src('http://downloads.webmproject.org/releases/webp/libwebp-0.6.1.tar.gz')
.cmd(`./configure --disable-shared --prefix="${bin.dest()}" --bindir="${bin.dest()}"`)
.cmd('make && make install');
return builder.run(err => {
if (err) {
log.error(err.stack);
return;
}
log.success('cwebp built successfully');
});
}
log.success('cwebp pre-build test passed successfully');
binBuild.url('http://downloads.webmproject.org/releases/webp/libwebp-1.0.0.tar.gz', [
`./configure --disable-shared --prefix="${bin.dest()}" --bindir="${bin.dest()}"`,
'make && make install'
]).then(() => {
log.success('cwebp built successfully');
}).catch(error => {
log.error(error.stack);
});
});
{
"name": "cwebp-bin",
"version": "4.0.0",
"version": "5.0.0",
"description": "cwebp wrapper that makes it seamlessly available as a local dependency",

@@ -32,3 +32,3 @@ "license": "MIT",

"engines": {
"node": ">=4"
"node": ">=6"
},

@@ -57,11 +57,11 @@ "scripts": {

"dependencies": {
"bin-build": "^2.2.0",
"bin-wrapper": "^3.0.1",
"logalot": "^2.0.0"
"bin-build": "^3.0.0",
"bin-wrapper": "^4.0.1",
"logalot": "^2.1.0"
},
"devDependencies": {
"ava": "*",
"bin-check": "^4.0.1",
"bin-check": "^4.1.0",
"compare-size": "^3.0.0",
"execa": "^0.8.0",
"execa": "^1.0.0",
"tempy": "^0.2.1",

@@ -68,0 +68,0 @@ "xo": "*"

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