@@ -215,6 +215,9 @@ http.createServer((request, response) => {
215
215
```
216
216
217
217
## Constants
218
+ <!-- YAML
219
+ added: v0.5.8
220
+ -->
218
221
219
222
<!-- type=misc-->
220
223
@@ -279,6 +282,9 @@ For initializing zalloc, zfree, opaque.
279
282
* ` zlib.Z_NULL `
280
283
281
284
## Class Options
285
+ <!-- YAML
286
+ added: v0.11.1
287
+ -->
282
288
283
289
<!-- type=misc-->
284
290
@@ -300,40 +306,67 @@ See the description of `deflateInit2` and `inflateInit2` at
300
306
< http://zlib.net/manual.html#Advanced > for more information on these.
301
307
302
308
## Class: zlib.Deflate
309
+ <!-- YAML
310
+ added: v0.5.8
311
+ -->
303
312
304
313
Compress data using deflate.
305
314
306
315
## Class: zlib.DeflateRaw
316
+ <!-- YAML
317
+ added: v0.5.8
318
+ -->
307
319
308
320
Compress data using deflate, and do not append a ` zlib ` header.
309
321
310
322
## Class: zlib.Gunzip
323
+ <!-- YAML
324
+ added: v0.5.8
325
+ -->
311
326
312
327
Decompress a gzip stream.
313
328
314
329
## Class: zlib.Gzip
330
+ <!-- YAML
331
+ added: v0.5.8
332
+ -->
315
333
316
334
Compress data using gzip.
317
335
318
336
## Class: zlib.Inflate
337
+ <!-- YAML
338
+ added: v0.5.8
339
+ -->
319
340
320
341
Decompress a deflate stream.
321
342
322
343
## Class: zlib.InflateRaw
344
+ <!-- YAML
345
+ added: v0.5.8
346
+ -->
323
347
324
348
Decompress a raw deflate stream.
325
349
326
350
## Class: zlib.Unzip
351
+ <!-- YAML
352
+ added: v0.5.8
353
+ -->
327
354
328
355
Decompress either a Gzip- or Deflate-compressed stream by auto-detecting
329
356
the header.
330
357
331
358
## Class: zlib.Zlib
359
+ <!-- YAML
360
+ added: v0.5.8
361
+ -->
332
362
333
363
Not exported by the ` zlib ` module. It is documented here because it is the base
334
364
class of the compressor/decompressor classes.
335
365
336
366
### zlib.flush([ kind] , callback)
367
+ <!-- YAML
368
+ added: v0.5.8
369
+ -->
337
370
338
371
` kind ` defaults to ` zlib.Z_FULL_FLUSH ` .
339
372
@@ -346,40 +379,67 @@ normal call to `.write()`, i.e. it will be queued up behind other pending
346
379
writes and will only produce output when data is being read from the stream.
347
380
348
381
### zlib.params(level, strategy, callback)
382
+ <!-- YAML
383
+ added: v0.11.4
384
+ -->
349
385
350
386
Dynamically update the compression level and compression strategy.
351
387
Only applicable to deflate algorithm.
352
388
353
389
### zlib.reset()
390
+ <!-- YAML
391
+ added: v0.7.0
392
+ -->
354
393
355
394
Reset the compressor/decompressor to factory defaults. Only applicable to
356
395
the inflate and deflate algorithms.
357
396
358
397
## zlib.createDeflate([ options] )
398
+ <!-- YAML
399
+ added: v0.5.8
400
+ -->
359
401
360
402
Returns a new [ Deflate] [ ] object with an [ options] [ ] .
361
403
362
404
## zlib.createDeflateRaw([ options] )
405
+ <!-- YAML
406
+ added: v0.5.8
407
+ -->
363
408
364
409
Returns a new [ DeflateRaw] [ ] object with an [ options] [ ] .
365
410
366
411
## zlib.createGunzip([ options] )
412
+ <!-- YAML
413
+ added: v0.5.8
414
+ -->
367
415
368
416
Returns a new [ Gunzip] [ ] object with an [ options] [ ] .
369
417
370
418
## zlib.createGzip([ options] )
419
+ <!-- YAML
420
+ added: v0.5.8
421
+ -->
371
422
372
423
Returns a new [ Gzip] [ ] object with an [ options] [ ] .
373
424
374
425
## zlib.createInflate([ options] )
426
+ <!-- YAML
427
+ added: v0.5.8
428
+ -->
375
429
376
430
Returns a new [ Inflate] [ ] object with an [ options] [ ] .
377
431
378
432
## zlib.createInflateRaw([ options] )
433
+ <!-- YAML
434
+ added: v0.5.8
435
+ -->
379
436
380
437
Returns a new [ InflateRaw] [ ] object with an [ options] [ ] .
381
438
382
439
## zlib.createUnzip([ options] )
440
+ <!-- YAML
441
+ added: v0.5.8
442
+ -->
383
443
384
444
Returns a new [ Unzip] [ ] object with an [ options] [ ] .
385
445
@@ -395,37 +455,79 @@ Every method has a `*Sync` counterpart, which accept the same arguments, but
395
455
without a callback.
396
456
397
457
### zlib.deflate(buf[ , options] , callback)
458
+ <!-- YAML
459
+ added: v0.6.0
460
+ -->
398
461
### zlib.deflateSync(buf[ , options] )
462
+ <!-- YAML
463
+ added: v0.11.12
464
+ -->
399
465
400
466
Compress a Buffer or string with Deflate.
401
467
402
468
### zlib.deflateRaw(buf[ , options] , callback)
469
+ <!-- YAML
470
+ added: v0.6.0
471
+ -->
403
472
### zlib.deflateRawSync(buf[ , options] )
473
+ <!-- YAML
474
+ added: v0.11.12
475
+ -->
404
476
405
477
Compress a Buffer or string with DeflateRaw.
406
478
407
479
### zlib.gunzip(buf[ , options] , callback)
480
+ <!-- YAML
481
+ added: v0.6.0
482
+ -->
408
483
### zlib.gunzipSync(buf[ , options] )
484
+ <!-- YAML
485
+ added: v0.11.12
486
+ -->
409
487
410
488
Decompress a Buffer or string with Gunzip.
411
489
412
490
### zlib.gzip(buf[ , options] , callback)
491
+ <!-- YAML
492
+ added: v0.6.0
493
+ -->
413
494
### zlib.gzipSync(buf[ , options] )
495
+ <!-- YAML
496
+ added: v0.11.12
497
+ -->
414
498
415
499
Compress a Buffer or string with Gzip.
416
500
417
501
### zlib.inflate(buf[ , options] , callback)
502
+ <!-- YAML
503
+ added: v0.6.0
504
+ -->
418
505
### zlib.inflateSync(buf[ , options] )
506
+ <!-- YAML
507
+ added: v0.11.12
508
+ -->
419
509
420
510
Decompress a Buffer or string with Inflate.
421
511
422
512
### zlib.inflateRaw(buf[ , options] , callback)
513
+ <!-- YAML
514
+ added: v0.6.0
515
+ -->
423
516
### zlib.inflateRawSync(buf[ , options] )
517
+ <!-- YAML
518
+ added: v0.11.12
519
+ -->
424
520
425
521
Decompress a Buffer or string with InflateRaw.
426
522
427
523
### zlib.unzip(buf[ , options] , callback)
524
+ <!-- YAML
525
+ added: v0.6.0
526
+ -->
428
527
### zlib.unzipSync(buf[ , options] )
528
+ <!-- YAML
529
+ added: v0.11.12
530
+ -->
429
531
430
532
Decompress a Buffer or string with Unzip.
431
533
0 commit comments