Affiliate link

Node.js - Built in Modules

Node.js includes several built-in packages that provide useful functionality. Here is a full reference of all the built-in packages in Node.js, along with a brief description of each package.

assert

This package provides functions that throw an error if a specified condition is not true. This is useful for debugging purposes.

buffer

This package provides a way to handle binary data in Node.js. It includes functions for creating and manipulating buffers, which are used to represent binary data.

child_process

This package provides a way to create child processes in Node.js. This is useful for running external commands or running Node.js scripts in a separate process.

cluster

This package provides a way to create a cluster of Node.js processes that can share the same port. This is useful for scaling Node.js applications across multiple CPUs or servers.

crypto

This package provides functions for creating cryptographic hashes, ciphers, and deciphering messages. It is useful for securing data in Node.js applications.

dns

This package provides functions for resolving domain names and IP addresses. It is useful for making network requests and building network applications.

events

This package provides an event emitter that can be used to emit and listen for events in Node.js. It is useful for building asynchronous applications.

fs

This package provides functions for working with the file system in Node.js. It includes functions for reading and writing files, creating directories, and managing file permissions.

http

This package provides an HTTP server and client implementation in Node.js. It is useful for building web applications and making HTTP requests.

https

This package provides an HTTPS server and client implementation in Node.js. It is useful for building secure web applications and making secure HTTP requests.

net

This package provides a way to create TCP servers and clients in Node.js. It is useful for building network applications.

os

This package provides information about the operating system that Node.js is running on. It includes functions for getting information about the CPU, memory, and network interfaces.

path

This package provides functions for working with file paths in Node.js. It includes functions for joining and normalizing paths, as well as resolving relative paths.

process

This package provides information about the Node.js process that is running. It includes functions for getting information about the process ID, memory usage, and environment variables.

querystring

This package provides functions for encoding and decoding URL query strings. It is useful for working with HTTP requests and building web applications.

readline

This package provides a way to read input from the command line in Node.js. It is useful for building command-line applications.

stream

This package provides a way to work with streams in Node.js. It includes functions for creating readable and writable streams, as well as transforming and piping streams.

string_decoder

This package provides a way to decode strings that were encoded in a specific encoding in Node.js. It is useful for working with binary data that has been converted to a string.

timers

This package provides functions for scheduling and canceling timer-based callbacks in Node.js. It is useful for building applications that need to perform tasks at specific intervals.

tls

This package provides a way to create TLS/SSL connections in Node.js. It is useful for building secure network applications.

tty

This package provides a way to work with TTY (terminal) streams in Node.js. It includes functions for determining whether a stream is a TTY stream, as well as getting information about the terminal size.

url

This package provides functions for working with URLs in Node.js. It includes functions for parsing and formatting URLs.

util

This package provides utility functions that are useful in Node.js applications. It includes functions for debugging, formatting, and inspect

Affiliate link
Affiliate link
Advertisment
Fiverr
Get Surfshark VPN
rocket.net