The assert module provides a simple set of assertion tests that can be used to test invariants.
The assert module provides a simple set of assertion tests that can be used to test invariants. The module is intended for internal use by Node.js, but can be used in application code via require('assert'). However, assert is not a testing framework, and is not intended to be used as a general purpose assertion library.
The API for the assert module is Locked. This means that there will be no additions or changes to any of the methods implemented and exposed by the module.
The console module provides a simple debugging console that is similar to the JavaScript console mechanism provided by web browsers.
The console module provides a simple debugging console that is similar to the JavaScript console mechanism provided by web browsers.
The module exports two specific components:
https://nodejs.org/api/console.html
Console Dir Options
Console Dir Options
Creates a new Error object and sets the error.message property to the provided text message.
Creates a new Error object and sets the error.message property to the provided text message. If an object is passed as message, the text message is generated by calling message.toString(). The error.stack property will represent the point in the code at which new Error() was called. Stack traces are dependent on V8's stack trace API. Stack traces extend only to either (a) the beginning of synchronous code execution, or (b) the number of frames given by the property Error.stackTraceLimit, whichever is smaller.
Represents a file descriptor
In browsers, the top-level scope is the global scope.
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.
In each module, the module free variable is a reference to the object representing the current module.
In each module, the module free variable is a reference to the object representing the current module. For convenience, module.exports is also accessible via the exports module-global. module isn't actually a global but rather local to each module.
https://nodejs.org/api/modules.html#modules_the_module_object
The process object is a global object and can be accessed from anywhere.
The process object is a global object and can be accessed from anywhere. It is an instance of EventEmitter.
To use this module, do require('string_decoder').
To use this module, do require('string_decoder'). StringDecoder decodes a buffer to a string. It is a simple interface to Buffer.toString() but provides additional support for utf8.
System Error
System Error
Assert Singleton
Assert Singleton
Error Singleton
Error Singleton
There was a fatal unrecoverable error in V8.
There was a fatal unrecoverable error in V8. Typically a message will be printed to stderr with the prefix FATAL ERROR.
There was an uncaught exception, and the internal fatal exception handler function itself threw an error while attempting to handle it.
There was an uncaught exception, and the internal fatal exception handler function itself threw an error while attempting to handle it. This can happen, for example, if a 'uncaughtException' or domain.on('error') handler throws an error.
The JavaScript source code internal in Node.js's bootstrapping process failed to return a function value when evaluated.
The JavaScript source code internal in Node.js's bootstrapping process failed to return a function value when evaluated. This is extremely rare, and generally can only happen during development of Node.js itself.
The JavaScript source code internal in Node.js's bootstrapping process caused a parse error.
The JavaScript source code internal in Node.js's bootstrapping process caused a parse error. This is extremely rare, and generally can only happen during development of Node.js itself.
The JavaScript source code internal in Node.js's bootstrapping process threw an error when the bootstrapping function was called.
The JavaScript source code internal in Node.js's bootstrapping process threw an error when the bootstrapping function was called. This is extremely rare, and generally can only happen during development of Node.js itself.
Either an unknown option was specified, or an option requiring a value was provided without a value.
The --debug and/or --debug-brk options were set, but an invalid port number was chosen.
Module Companion
There was an uncaught exception, but the internal fatal exception handler function was somehow set to a non-function, and could not be called.
Process Object Companion
If Node.js receives a fatal signal such as SIGKILL or SIGHUP, then its exit code will be 128 plus the value of the signal code.
If Node.js receives a fatal signal such as SIGKILL or SIGHUP, then its exit code will be 128 plus the value of the signal code. This is a standard Unix practice, since exit codes are defined to be 7-bit integers, and signal exits set the high-order bit, and then contain the value of the signal code.
System Error Singleton
System Error Singleton
There was an uncaught exception, and it was not handled by a domain or an 'uncaughtException' event handler.
The directory name of the current module.
The directory name of the current module. This the same as the path.dirname() of the __filename.
The file name of the current module.
The file name of the current module. This is the resolved absolute path of the current module file. For a main program this is not necessarily the same as the file name used in the command line. See __dirname for the directory name of the current module.
buffer package object
cluster package object
Used to print to stdout and stderr.
Used to print to stdout and stderr. See the console section.
dns package object
Implicit conversion to translate durations into a double
Implicit conversion to translate durations into a double
the given duration
the time in milliseconds as a double
Implicit conversion to translate durations into an integer
Implicit conversion to translate durations into an integer
the given duration
the time in milliseconds as an integer
Implicit conversion to transform Node Errors to Exceptions
fs package object
In browsers, the top-level scope is the global scope.
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 a Node.js module will be local to that module.
http package object
https package object
net package object
os package object
The process object.
The process object. See the process object section.
query string package object
tty package object
zlib package object
nodejs package object