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

cwebp-bin

Package Overview
Dependencies
Maintainers
1
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 0.1.7 to 0.1.8

10

lib/index.js

@@ -6,9 +6,11 @@ 'use strict';

var BASE_URL = 'https://raw.githubusercontent.com/shinnn/node-cwebp-bin/2b4b0836753e748f899209c86a37a378bc9fdcd9/vendor/';
var bin = new BinWrapper()
.src('https://raw.github.com/1000ch/node-cwebp-bin/master/vendor/osx/cwebp', 'darwin')
.src('https://raw.github.com/1000ch/node-cwebp-bin/master/vendor/linux/cwebp', 'linux')
.src('https://raw.github.com/1000ch/node-cwebp-bin/master/vendor/win/cwebp.exe', 'win32')
.dest(path.join(__dirname, 'vendor'))
.src(BASE_URL + 'osx/cwebp', 'darwin')
.src(BASE_URL + 'linux/cwebp', 'linux')
.src(BASE_URL + 'win/cwebp.exe', 'win32')
.dest(path.join(__dirname, '../vendor'))
.use(process.platform === 'win32' ? 'cwebp.exe' : 'cwebp');
module.exports = bin;

4

lib/install.js

@@ -13,4 +13,4 @@ 'use strict';

.src('http://downloads.webmproject.org/releases/webp/libwebp-0.4.1.tar.gz')
.cmd('node -p "require(\'fs\').chmodSync(\'./configure\', \'755\')"')
.cmd('./configure && make && mkdir -p ' + bin.dest() + ' && mv ./examples/.libs/cwebp ' + bin.use());
.cmd('./configure --prefix="' + bin.dest() + '" --bindir="' + bin.dest() + '"')
.cmd('make && make install');

@@ -17,0 +17,0 @@ return builder.build(function (error) {

{
"name": "cwebp-bin",
"version": "0.1.7",
"version": "0.1.8",
"description": "cwebp node.js wrapper that convert JPG or PNG into WebP",

@@ -5,0 +5,0 @@ "bin": {

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