vm.isContext()

vm.isContext(sandbox) Returns whether or not a sandbox object has been contextified by calling vm.createContext() on it.

Verify

Class: Verify The Verify class is a utility for verifying signatures. It can be used in one of two ways: As a writable stream where written data is used to validate against the supplied signature, or Using the verify.update() and verify.verify() methods to verify the signature. The crypto.createSign() method is used to create Sign instances. Sign objects are not to be created directly using the new keyword. Example: Using Verify objects as streams: const crypto = require('crypto'); const

vm.createContext()

vm.createContext([sandbox]) If given a sandbox object, will "contextify" that sandbox so that it can be used in calls to vm.runInContext() or script.runInContext(). Inside scripts run as such, sandbox will be the global object, retaining all its existing properties but also having the built-in objects and functions any standard global object has. Outside of scripts run by the vm module, sandbox will be unchanged. If not given a sandbox object, returns a new, empty contextified sandbox object y

verifier.verify()

verifier.verify(object, signature[, signature_format]) Verifies the provided data using the given object and signature. The object argument is a string containing a PEM encoded object, which can be one an RSA public key, a DSA public key, or an X.509 certificate. The signature argument is the previously calculated signature for the data, in the signature_format which can be 'binary', 'hex' or 'base64'. If a signature_format is specified, the signature is expected to be a string; otherwise signa

verifier.update()

verifier.update(data[, input_encoding]) Updates the Verify 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 'utf8' 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.

util.pump()

util.pump(readableStream, writableStream[, callback]) Stability: 0 - Deprecated: Use readableStream.pipe(writableStream) Deprecated predecessor of stream.pipe().

util.log()

util.log(string) Output with timestamp on stdout. require('util').log('Timestamped message.');

util.isUndefined()

util.isUndefined(object) Stability: 0 - Deprecated Returns true if the given "object" is undefined. Otherwise, returns false. const util = require('util'); var foo; util.isUndefined(5) // false util.isUndefined(foo) // true util.isUndefined(null) // false

util.print()

util.print([...]) Stability: 0 - Deprecated: Use console.log() instead. Deprecated predecessor of console.log.

util.puts()

util.puts([...]) Stability: 0 - Deprecated: Use console.log() instead. Deprecated predecessor of console.log.