# node-pngcrush

> The node-pngcrush is an addon of node, as a readable/writable stream

Latest version **1.1.0** (published 2020-06-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-pngcrush
pnpm add node-pngcrush
yarn add node-pngcrush
bun add node-pngcrush
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2020-06-03 |
| First published | 2013-07-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 319.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 45 |
| Author | xiangshouding |
| Maintainers | 2betop, fansekey, fis-dev |
| Keywords | pngcrush, png |

## Links

- npm: https://www.npmjs.com/package/node-pngcrush
- Repository: https://github.com/xiangshouding/node-pngcrush
- Homepage: https://github.com/xiangshouding/node-pngcrush#readme
- Issues: https://github.com/xiangshouding/node-pngcrush/issues
- npm.io page: https://npm.io/package/node-pngcrush

## Dependencies (1)

- [semver](https://npm.io/package/semver.md) ^5.6.0

## Recent versions

- 1.1.0 (latest) — 2020-06-03
- 1.0.2 — 2020-05-14
- 1.0.1 — 2019-01-11
- 1.0.0 — 2017-09-20
- 0.4.0 — 2017-06-27
- 0.3.7 — 2016-05-09
- 0.3.6 — 2016-03-10
- 0.3.5 — 2016-02-25
- 0.3.4 — 2015-12-16
- 0.3.3 — 2015-10-29
- 0.3.2 — 2015-10-12
- 0.3.1 — 2015-10-12
- 0.3.0 — 2015-10-03
- 0.2.1 — 2015-05-12
- 0.2.0 — 2015-05-11
- … 19 more at https://npm.io/package/node-pngcrush/versions

## README

## node-pngcrush
[![NPM version](https://badge.fury.io/js/node-pngcrush.png)](http://badge.fury.io/js/node-pngcrush)

node-pngcrush是一个node的插件，它把pngcrush内嵌到了插件中，而不是调用命令行的方式，提升处理速率，有效的省去了调用外部程序产生的时间开销。

## 安装

    npm install -g node-pngcrush

## 使用

```javascript

var C = require('node-pngcrush');

fs.readFile('./alphatest.png', function (err, data) {
  if (err) throw err;
  var buffer = C.compress(data);
  fs.writeFile('./alphatest_out.png', buffer, {
      flags: 'wb'
  }, function(err){});
});


```

## 更新日誌

### 0.4.0

- Mac 下支持 Node 8.x 版本

---
_Source: https://npm.io/package/node-pngcrush · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
