pngquant-bin
Advanced tools
Comparing version 8.0.1 to 9.0.0
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47
110922
2
51
+ Addedexeca@8.0.1(transitive)
+ Addedget-stream@8.0.1(transitive)
+ Addedhuman-signals@5.0.0(transitive)
+ Addedsignal-exit@4.1.0(transitive)
- Removedexeca@6.1.0(transitive)
- Removedget-stream@6.0.1(transitive)
- Removedhuman-signals@3.0.1(transitive)
Updatedexeca@^8.0.1