# cgbi-to-png

> Revert Xcode PNG compression (CgBI) in plain javascript.

Latest version **1.0.7** (published 2018-05-01) · mit license · 0 weekly downloads

## Install

```sh
npm install cgbi-to-png
pnpm add cgbi-to-png
yarn add cgbi-to-png
bun add cgbi-to-png
```

## 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.0.7 |
| Published | 2018-05-01 |
| First published | 2015-10-06 |
| Weekly downloads | 0 |
| License | mit |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 80.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | jakub.knejzlik |
| Keywords | xcode,revert,optimisation,compression,cgbi,png,cgbi-to-png,file,convert |

## Links

- npm: https://www.npmjs.com/package/cgbi-to-png
- Repository: https://github.com/jakubknejzlik/cgbi-to-png
- Homepage: https://github.com/jakubknejzlik/cgbi-to-png#readme
- Issues: https://github.com/jakubknejzlik/cgbi-to-png/issues
- npm.io page: https://npm.io/package/cgbi-to-png

## Dependencies (4)

- [crc](https://npm.io/package/crc.md) ^3.3.0
- [bufferpack](https://npm.io/package/bufferpack.md) 0.0.6
- [streamifier](https://npm.io/package/streamifier.md) ^0.1.1
- [stream-to-buffer](https://npm.io/package/stream-to-buffer.md) ^0.1.0

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 1.0.7 (latest) — 2018-05-01
- 1.0.6 — 2017-12-25
- 1.0.5 — 2017-12-25
- 1.0.4 — 2016-09-22
- 1.0.3 — 2016-09-22
- 1.0.2 — 2015-10-07
- 1.0.1 — 2015-10-06
- 1.0.0 — 2015-10-06

## README

# cgbi-to-png

[![Build Status](https://travis-ci.org/jakubknejzlik/cgbi-to-png.svg?branch=master)](https://travis-ci.org/jakubknejzlik/cgbi-to-png)

Revert Xcode PNG compression (CgBI) in plain javascript.


# Example

You can revert stream...

```
var cgbiToPng = require('cgbi-to-png');

var cgbiFileStream = fs.createReadStream(...);

cgbiToPng(cgbiFileStream,function(err,pngStream){
    // handle reverted pngStream (eg. pngStream.pipe(...))
});

```

...or buffer directly.

```
var cgbiBuffer = fs.readFileSync(...);
var pngBuffer = cgbiToPng.revert(cgbiBuffer);
```

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