Basics
Callback,Promises
Callbacks:
Promises:
Async/Await:
Modules
assert
- Provides a set of assertion tests
buffer
- Handles binary datachild_process
- Runs child processescluster
- Splits a single Node process into multiple processescrypto
- Handles OpenSSL cryptographic functionsdgram
- Provides implementation of UDP datagram socketsdns
- Performs DNS lookups and name resolution functionsdomain
- Deprecated, used to handle unhandled errorsevents
- Handles eventsfs
- Interacts with the file systemhttp
- Creates HTTP servers and clientshttps
- Creates HTTPS servers and clientsnet
- Creates TCP servers and clientsos
- Provides information about the operating systempath
- Handles file pathspunycode
- Deprecated, a character encoding schemequerystring
- Handles URL query stringsreadline
- Handles readable streams one line at a timestream
- Handles streaming datastring_decoder
- Decodes buffer objects into stringstimers
- Executes a function after a given number of millisecondstls
- Implements TLS and SSL protocolstty
- Provides classes used by a text terminalurl
- Parses URL stringsutil
- Provides utility functionsv8
- Accesses information about the V8 JavaScript enginevm
- Compiles JavaScript code in a virtual machinezlib
- Compresses or decompresses filesassert/strict
- Provides a set of strict assertion testsasync_hooks
- Provides an API to track asynchronous resourcesconsole
- Provides a simple debugging consoleconstants
- Provides various constantsdiagnostics_channel
- Provides an API for creating diagnostic channelsdns/promises
- Provides promises-based DNS lookup functionsfs/promises
- Provides promises-based file system APIhttp2
- Provides an implementation of the HTTP/2 protocolinspector
- Provides an interface to the V8 inspectorinspector/promises
- Provides promises-based inspector APImodule
- Provides functions related to modulesperf_hooks
- Provides performance measurement APIsreadline/promises
- Provides promises-based readline APIrepl
- Provides a Read-Eval-Print-Loop (REPL) interfacestream/consumers
- Provides stream consumersstream/promises
- Provides promises-based stream APIstream/web
- Provides web streams APIsys
- Provides system-level utilities (deprecated, useutil
instead)timers/promises
- Provides promises-based timer APItrace_events
- Provides an interface for recording trace eventsutil/types
- Provides utilities for type checkingwasi
- Provides the WebAssembly System Interface APIworker_threads
- Provides a way to create multithreaded Node.js applications
File System (fs)
TCP/UDP (net)
Connecting to data
MySQL:
PostgreSQL:
MongoDB:
HTTP server (http)
Path & OS
Real-time Apps
WebSockets (Socket.IO):
Server-Sent Events (SSE):