hash.update()

hash.update(data[, input_encoding]) Updates the hash content with the given data, the encoding of which is given in input_encoding and can be 'utf8', 'ascii' or 'binary'. If encoding is not provided, and the data is a string, an encoding of 'binary' is enforced. If data is a Buffer then input_encoding is ignored. This can be called many times with new data as it is streamed.

hash.digest()

hash.digest([encoding]) Calculates the digest of all of the data passed to be hashed (using the hash.update() method). The encoding can be 'hex', 'binary' or 'base64'. If encoding is provided a string will be returned; otherwise a Buffer is returned. The Hash object can not be used again after hash.digest() method has been called. Multiple calls will cause an error to be thrown.

Hash

Class: Hash The Hash class is a utility for creating hash digests of data. It can be used in one of two ways: As a stream that is both readable and writable, where data is written to produce a computed hash digest on the readable side, or Using the hash.update() and hash.digest() methods to produce the computed hash. The crypto.createHash() method is used to create Hash instances. Hash objects are not to be created directly using the new keyword. Example: Using Hash objects as streams: con

global

global {Object} The global namespace object. In browsers, the top-level scope is the global scope. That means that in browsers if you're in the global scope var something will define a global variable. In Node.js this is different. The top-level scope is not the global scope; var something inside an Node.js module will be local to that module.

getHeapStatistics()

getHeapStatistics() Returns an object with the following properties { total_heap_size: 7326976, total_heap_size_executable: 4194304, total_physical_size: 7326976, total_available_size: 1152656, used_heap_size: 3476208, heap_size_limit: 1535115264 }

getHeapSpaceStatistics()

getHeapSpaceStatistics() Returns statistics about the V8 heap spaces, i.e. the segments which make up the V8 heap. Order of heap spaces nor availability of a heap space can be guaranteed as the statistics are provided via the V8 GetHeapSpaceStatistics function. Example result: [ { "space_name": "new_space", "space_size": 2063872, "space_used_size": 951112, "space_available_size": 80824, "physical_space_size": 2063872 }, { "space_name": "old_space", "space_siz

fs.writeSync()

fs.writeSync(fd, buffer, offset, length[, position])

fs.WriteStream

Class: fs.WriteStream WriteStream is a Writable Stream.

fs.writeFileSync()

fs.writeFileSync(file, data[, options]) The synchronous version of fs.writeFile(). Returns undefined.

fs.writeFile()

fs.writeFile(file, data[, options], callback) file <String> | <Integer> filename or file descriptor data <String> | <Buffer> options <Object> | <String> encoding <String> | <Null> default = 'utf8' mode <Number> default = 0o666 flag <String> default = 'w' callback <Function> Asynchronously writes data to a file, replacing the file if it already exists. data can be a string or a buffer. The encoding option is ignored