Get Started

Install Get Version REPL Eval Launching Node Code from a File Node.js Globals global.process global.require global.console GLOBAL

Require And Export

require() require() with Local Files require() with npm or core modules/packages require() Caching module.exports Core Modules

Process

Process process.env process.argv process.exit() process.exitCode process.version

File System

File System Create a Directory fs.mkdir()

Path

Path path.join() __dirname

Event

Event on() Custom Event EventEmitter emit() once() event.removeAllListeners()

Buffer

Buffer Binary Data Stream of Binary Data Creating Buffer Buffer.alloc() Buffer.allocUnsafe() Buffer.from() Buffer.from(Array) Buffer.from(Buffer) Buffer.from(string[, encoding]) Buffer.isBuffer() buffer.fill() buffer.length buffer.toString() buffer.write() Buffers and iteration buffer[index] buffer.keys() buffer.values() buffer.entries() buffer.concat() Buffer.compare() buffer.compare() buffer.equals() buffer.includes() buffer.indexOf() buffer.lastIndexOf() buffer.slice() buffer.toJSON() buffer.kMaxLength Buffer Constants buffer.constants.MAX_LENGTH buffer.constants.MAX_STRING_LENGTH