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

pngquant-bin

Package Overview
Dependencies
Maintainers
6
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pngquant-bin - npm Package Compare versions

Comparing version 8.0.1 to 9.0.0

8

lib/index.js

@@ -6,6 +6,6 @@ import fs from 'node:fs';

const pkg = JSON.parse(fs.readFileSync(new URL('../package.json', import.meta.url)));
const url = `https://raw.githubusercontent.com/imagemin/pngquant-bin/v${pkg.version}/vendor/`;
const package_ = JSON.parse(fs.readFileSync(new URL('../package.json', import.meta.url)));
const url = `https://raw.githubusercontent.com/imagemin/pngquant-bin/v${package_.version}/vendor/`;
const binWrapper = new BinWrapper()
const binaryWrapper = new BinWrapper()
.src(`${url}macos/pngquant`, 'darwin')

@@ -19,2 +19,2 @@ .src(`${url}linux/x86/pngquant`, 'linux', 'x86')

export default binWrapper;
export default binaryWrapper;

@@ -6,5 +6,6 @@ import process from 'node:process';

bin.run(['--version']).then(() => {
try {
await bin.run(['--version']);
console.log('pngquant pre-build test passed successfully');
}).catch(async error => {
} catch (error) {
console.warn(error.message);

@@ -30,2 +31,2 @@ console.warn('pngquant pre-build test failed');

}
});
}
{
"name": "pngquant-bin",
"version": "8.0.1",
"version": "9.0.0",
"description": "`pngquant` wrapper that makes it seamlessly available as a local dependency",

@@ -9,18 +9,2 @@ "license": "GPL-3.0+",

"exports": "./index.js",
"author": {
"name": "Kevin Mårtensson",
"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": {

@@ -30,3 +14,3 @@ "pngquant": "cli.js"

"engines": {
"node": "^14.13.1 || >=16.0.0"
"node": ">=18"
},

@@ -47,3 +31,2 @@ "scripts": {

"image",
"img",
"minify",

@@ -57,11 +40,11 @@ "optimize",

"bin-wrapper": "^4.0.1",
"execa": "^6.1.0"
"execa": "^8.0.1"
},
"devDependencies": {
"ava": "^4.2.0",
"ava": "^6.1.2",
"bin-check": "^4.0.1",
"compare-size": "^3.0.0",
"tempy": "^3.0.0",
"xo": "^0.48.0"
"xo": "^0.58.0"
}
}

@@ -7,18 +7,16 @@ # pngquant-bin ![GitHub Actions Status](https://github.com/imagemin/pngquant-bin/workflows/test/badge.svg?branch=main)

## Install
```sh
npm install pngquant-bin
```
$ npm install pngquant-bin
```
Make sure you have the correct version of [libimagequant](https://github.com/ImageOptim/libimagequant).
```
```sh
# via Homebrew for macOS
$ brew install libimagequant
brew install libimagequant
# via apt-get for Debian distributions
$ sudo apt-get install libimagequant-dev
sudo apt-get install libimagequant-dev
```

@@ -37,14 +35,12 @@

## CLI
```sh
npm install --global pngquant-bin
```
$ npm install --global pngquant-bin
```
```sh
pngquant --help
```
$ pngquant --help
```
## Updating pre-compiled binaries

@@ -51,0 +47,0 @@

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