Core APIs
What are Node’s Core APIs?
Section titled “What are Node’s Core APIs?”Node.js ships with a rich set of built-in globals and modules that are available without installing anything. These are the primitives every Node.js program is built on.
Key globals and modules covered in this module:
process— access to the running process: environment variables, command-line arguments, the working directory, the platform, and lifecycle control.Buffer— a fixed-length chunk of raw binary data. Predates typed arrays and remains the standard way to work with bytes in Node streams and networking.node:fs/node:fs/promises— read, write, and navigate the filesystem. The promises API lets you useasync/awaitnatively.EventEmitter— the backbone of Node’s event-driven architecture. Streams, the HTTP server, and many third-party libraries all extendEventEmitter.
What this module covers
Section titled “What this module covers”| Lesson | Topic |
|---|---|
| process & env | process.argv, process.env, exit codes, and platform detection |
| Buffer | Binary data, encodings, and byte-level manipulation |
| File System | fs callbacks, sync APIs, and the fs/promises interface |
| EventEmitter | Custom events, listeners, and the once / removeListener lifecycle |
A first globals demo
Section titled “A first globals demo”The snippet below reads two globals that are available in every Node.js process without any require or import:
Needs the Node.js runtime — open in StackBlitz to run.