An open API service indexing awesome lists of open source software.

https://github.com/pthomaid/native-deflate

Deflate and inflate on typed arrays using the Compression Streams API, provided as a Promises based API.
https://github.com/pthomaid/native-deflate

compression-stream deflate javascript npm promises typescript

Last synced: 2 months ago
JSON representation

Deflate and inflate on typed arrays using the Compression Streams API, provided as a Promises based API.

Awesome Lists containing this project

README

          

# native-deflate
Deflate and inflate typed arrays without external dependencies, provided as a promises based API.

```
npm install native-deflate
```

## usage

```js
import nd from 'native-deflate'

const dataIn = new Uint8Array(Array.from({ length: 100 }, () => Math.floor(Math.random() * 100)))
const dataOut = await nd.deflate(dataIn)
```

## license

MIT.