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.
- Host: GitHub
- URL: https://github.com/pthomaid/native-deflate
- Owner: pthomaid
- License: mit
- Created: 2024-12-01T08:52:40.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-07T17:54:27.000Z (over 1 year ago)
- Last Synced: 2025-04-02T14:21:44.293Z (about 1 year ago)
- Topics: compression-stream, deflate, javascript, npm, promises, typescript
- Language: TypeScript
- Homepage:
- Size: 80.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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.