browserify / browserify/browserify-zlib

Node zlib inflateSync will take UInt8Array, browserify-zlib won't

Open
#42 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
58
Forks
30
PR merge metrics
No merged PRs in 30d

Description

For example, this code is fine with node:

```
zlib.inflateSync(arr);
```

But with browserify-zlib we get `TypeError: not a string or buffer` and we must write instead:

```
zlib.inflateSync(Buffer.from(arr))
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.