Skip to content

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

@johnwhitington

Description

@johnwhitington

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))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions