New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-pngquant-native

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-pngquant-native - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

4

package.json
{
"name": "node-pngquant-native",
"version": "0.0.7",
"description": "pngquant native plugin of node",
"version": "0.0.8",
"description": "A pngquant addon of node",
"main": "index.js",

@@ -6,0 +6,0 @@ "directories": {

## node-pngquant-native
[![NPM version](https://badge.fury.io/js/node-pngquant-native.png)](http://badge.fury.io/js/node-pngquant-native)
node-pngquant-native是一个node的native插件,而不是调用命令行的方式,提升处理速率,有效的省去了调用外部程序产生的时间开销。
node-pngquant-native is an addon of node, support node version v0.8.0 to latest, It compress a `.png` image, not `exec` anthor
process.

@@ -10,7 +11,26 @@ ## install

## make
if install fail for you. download the source install it.
1. clone source code
```bash
$ git clone https://github.com/xiangshouding/node-pngquant-native.git
```
2. invoke `npm install -g .`
```bash
$ cd node-pngquant-native
$ npm install -g .
```
### require
+ 编译pngquant,编译器必须支持C99
+ 符合[node-gyp环境要求](https://github.com/TooTallNate/node-gyp#installation)
+ Windows用户,如果安装失败,请clone win32分支进行编译
+ make pngqunat, your compiler must support C99
+ install `node-gyp`, you can see detail information [https://github.com/TooTallNate/node-gyp#installation](https://github.com/TooTallNate/node-gyp#installation)
+ For WINDOWS user, please clone branch `win32`, because VS not support C99.
## use

@@ -77,4 +97,4 @@

var opt = {
isbug: true
iebug: true
}
```
```
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