Upakovka v Electron.JS no po staroy sborke cherez .cjs
This commit is contained in:
10
node_modules/minizlib/README.md
generated
vendored
10
node_modules/minizlib/README.md
generated
vendored
@@ -9,7 +9,7 @@ This module was created to serve the needs of
|
||||
|
||||
Brotli is supported in versions of node with a Brotli binding.
|
||||
|
||||
## How does this differ from the streams in `require('zlib')`?
|
||||
## How does this differ from the streams in `'node:zlib'`?
|
||||
|
||||
First, there are no convenience methods to compress or decompress a
|
||||
buffer. If you want those, use the built-in `zlib` module. This is
|
||||
@@ -41,13 +41,17 @@ provided by that class.
|
||||
- Unzip
|
||||
- BrotliCompress (Node v10 and higher)
|
||||
- BrotliDecompress (Node v10 and higher)
|
||||
- ZstdCompress (Node v22.15 and higher)
|
||||
- ZstdDecompress (Node v22.15 and higher)
|
||||
|
||||
## USAGE
|
||||
|
||||
```js
|
||||
const zlib = require('minizlib')
|
||||
import { BrotliDecompress } from 'minizlib'
|
||||
// or: const BrotliDecompress = require('minizlib')
|
||||
|
||||
const input = sourceOfCompressedData()
|
||||
const decode = new zlib.BrotliDecompress()
|
||||
const decode = new BrotliDecompress()
|
||||
const output = whereToWriteTheDecodedData()
|
||||
input.pipe(decode).pipe(output)
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user