Home
Node.js Reference
Node.js Reference
11 entries — click any item for full details and examples
Global Objects
| Name | Description |
|---|---|
| process | The process object provides information and control over the current Node.js process. |
| __dirname / __filename | __dirname is the directory of the current module; __filename is its full path. Not available in ES modules. |
| Buffer | The Buffer class handles binary data. Used for file I/O, streams, and network operations. |
Core Modules
| Name | Description |
|---|---|
| fs (File System) | Built-in module for file system operations: reading, writing, deleting, and watching files and directories. |
| path | Provides utilities for working with file and directory paths in a cross-platform way. |
| http / https | Built-in modules for creating HTTP/HTTPS servers and making requests without third-party libraries. |
| os | Provides operating system-related utility methods: CPU info, memory, platform, home directory. |
| crypto | Provides cryptographic functionality including hashing, HMAC, encryption, and random bytes generation. |
Events
| Name | Description |
|---|---|
| EventEmitter | The foundation of Node.js event-driven architecture. Classes extend EventEmitter to emit and listen to events. |
| Streams | Streams handle data piece by piece instead of loading it all into memory. Essential for large file operations. |
| npm scripts | Define custom commands in package.json that can be run with npm run. Common scripts: start, dev, build, test. |
No results found. Try a different search term.