__dirname

__dirname {String} The name of the directory that the currently executing script resides in. Example: running node example.js from /Users/mjr console.log(__dirname); // /Users/mjr __dirname isn't actually a global but rather local to each module. For instance, given two modules: a and b, where b is a dependency of a and there is a directory structure of: /Users/mjr/app/a.js /Users/mjr/app/node_modules/b/b.js References to __dirname within b.js will return /Users/mjr/app/node_modules/b w

__filename

__filename {String} The filename of the code being executed. This is the resolved absolute path of this code file. For a main program this is not necessarily the same filename used in the command line. The value inside a module is the path to that module file. Example: running node example.js from /Users/mjr console.log(__filename); // /Users/mjr/example.js __filename isn't actually a global but rather local to each module.

zlib.Zlib

Class: zlib.Zlib Not exported by the zlib module. It is documented here because it is the base class of the compressor/decompressor classes.

zlib.Unzip

Class: zlib.Unzip Decompress either a Gzip- or Deflate-compressed stream by auto-detecting the header.

zlib.unzip()

zlib.unzip(buf[, options], callback)

zlib.unzipSync()

zlib.unzipSync(buf[, options]) Decompress a Buffer or string with Unzip.

zlib.reset()

zlib.reset() Reset the compressor/decompressor to factory defaults. Only applicable to the inflate and deflate algorithms.

zlib.params()

zlib.params(level, strategy, callback) Dynamically update the compression level and compression strategy. Only applicable to deflate algorithm.

zlib.inflateRawSync()

zlib.inflateRawSync(buf[, options]) Decompress a Buffer or string with InflateRaw.

zlib.inflateRaw()

zlib.inflateRaw(buf[, options], callback)