Version: v2
@honestfoodcompany/pubsub
#
Classes#
Interfaces#
Functions#
isGzipCompressedâ–¸ Const
isGzipCompressed(buf
): boolean
gzip files contain a 10-byte header, containing a:
- magic number (1f 8b)
- the compression method (08 for DEFLATE)
- 1-byte of header flags, a 4-byte timestamp, compression flags and the operating system ID.
see
https://en.wikipedia.org/wiki/Gzip#File_format
#
ParametersName | Type |
---|---|
buf | Buffer |
#
Returnsboolean
#
Defined in#
setLoggerâ–¸ Const
setLogger(logger
): void
#
ParametersName | Type |
---|---|
logger | LoggerOptions |
#
Returnsvoid