Logo
Pattern

Discover published sets by community

Explore tens of thousands of sets crafted by our community.

Node.js Core Modules

25

Flashcards

0/25

Still learning
StarStarStarStar

events

StarStarStarStar

The 'events' module provides the EventEmitter class used for handling events. Example: const EventEmitter = require('events');

StarStarStarStar

net

StarStarStarStar

The 'net' module provides an asynchronous network API for creating stream-based TCP or IPC servers and clients. Example: const net = require('net');

StarStarStarStar

stream

StarStarStarStar

The 'stream' module is used to handle streaming data in Node.js. Example: const stream = require('stream');

StarStarStarStar

zlib

StarStarStarStar

The 'zlib' module provides compression and decompression functionalities. Example: const zlib = require('zlib');

StarStarStarStar

url

StarStarStarStar

The 'url' module provides utilities for URL resolution and parsing. Example: const url = require('url');

StarStarStarStar

fs

StarStarStarStar

The 'fs' module provides an API for interacting with the file system. Example: const fs = require('fs');

StarStarStarStar

vm

StarStarStarStar

The 'vm' module enables compiling and running code within V8 Virtual Machine contexts. Example: const vm = require('vm');

StarStarStarStar

assert

StarStarStarStar

The 'assert' module provides a simple set of assertion tests. Example: const assert = require('assert');

StarStarStarStar

dns

StarStarStarStar

The 'dns' module provides functionalities to do name resolution. Example: const dns = require('dns');

StarStarStarStar

buffer

StarStarStarStar

The 'buffer' module provides a way of handling streams of binary data. Example: const Buffer = require('buffer').Buffer;

StarStarStarStar

process

StarStarStarStar

The 'process' object is a global that provides information about, and control over, the current Node.js process. Example: Accessing process does not require require(), it's available globally as process.

StarStarStarStar

string_decoder

StarStarStarStar

The 'string_decoder' module provides an API for decoding buffer objects into strings. Example: const StringDecoder = require('string_decoder').StringDecoder;

StarStarStarStar

querystring

StarStarStarStar

The 'querystring' module provides utilities for parsing and formatting URL query strings. Example: const querystring = require('querystring');

StarStarStarStar

util

StarStarStarStar

The 'util' module is designed to support the needs of Node.js's internal APIs. Example: const util = require('util');

StarStarStarStar

child_process

StarStarStarStar

The 'child_process' module is used to spawn new processes. Example: const { spawn } = require('child_process');

StarStarStarStar

module

StarStarStarStar

The 'module' system in Node.js helps in organizing the code into separate units. Example: module.exports is the object that's actually returned as the result of a require call.

StarStarStarStar

cluster

StarStarStarStar

The 'cluster' module allows you to easily create child processes that run concurrently and share the same server port. Example: const cluster = require('cluster');

StarStarStarStar

crypto

StarStarStarStar

The 'crypto' module provides cryptographic functionality including a set of wrappers for OpenSSL's hash, hmac, cipher, decipher, sign and verify functions. Example: const crypto = require('crypto');

StarStarStarStar

timers

StarStarStarStar

The 'timers' module provides global functions for scheduling functions to be called later at some time. Example: setTimeout and setInterval are globals provided by the timers module.

StarStarStarStar

os

StarStarStarStar

The 'os' module provides utilities related to the operating system. Example: const os = require('os');

StarStarStarStar

tls

StarStarStarStar

The 'tls' module provides a secure counterpart to the net module, implementing TLS/SSL protocols. Example: const tls = require('tls');

StarStarStarStar

path

StarStarStarStar

The 'path' module provides utilities for working with file and directory paths. Example: const path = require('path');

StarStarStarStar

http

StarStarStarStar

The 'http' module allows Node.js to transfer data over the Hyper Text Transfer Protocol (HTTP). Example: const http = require('http');

StarStarStarStar

readline

StarStarStarStar

The 'readline' module provides an interface for reading data from a Readable stream (such as process.stdin) one line at a time. Example: const readline = require('readline');

StarStarStarStar

repl

StarStarStarStar

The 'repl' module provides a Read-Eval-Print-Loop implementation that is accessible from the command line or programmatically. Example: const repl = require('repl');

Know
0
Still learning
Click to flip
Know
0
Logo

© Hypatia.Tech. 2024 All rights reserved.