Tuesday, 2 October 2018

Node.js: Core modules

Core modules come with installation of node.js software.

At the time of writing this post, below are the core modules provided by node.js framework.

Module
Description
assert
Provides a simple set of assertion tests that can be used to test invariants.
async_hook
Provides an API to register callbacks tracking the lifetime of asynchronous resources created inside a Node.js application.
buffer
It enables interaction with octet streams in TCP streams, file system operations, and other contexts.
child_process
Provides the ability to spawn child processes
cluster
It allows easy creation of child processes that all share server ports.
console
Provides a simple debugging console that is similar to the JavaScript console mechanism provided by web browsers.
crypto
Provides cryptographic functionality that includes a set of wrappers for OpenSSL's hash, HMAC, cipher, decipher, sign, and verify functions.
dns
Functions that connect to an actual DNS server.
Support for events
fs
Provides an API for interacting with the file system in a manner closely modeled around standard POSIX functions.
http
Provide APIs to use HTTP server and client
http2
Provides an implementation of the HTTP/2 protocol.
https
Provide support for https protocol.
inspector
Provides an API for interacting with the V8 inspector.
net
Provides an asynchronous network API for creating stream-based TCP or IPC servers and clients
os
provides a number of operating system-related utility methods.
path
Provides utilities for working with file and directory paths.
perf_hooks
Provides an implementation of the W3C Performance Timeline specification.
process
Provides information about, and control over, the current Node.js process.
querystring
Provides utilities for parsing and formatting URL query strings.
Provides an interface for reading data from a Readable stream one line at a time.
repl
Provides a Read-Eval-Print-Loop (REPL) implementation that is available both as a standalone program or includible in other applications.
stream
Provide APIS to work with streaming data
string_decoder
provides an API for decoding Buffer objects into strings in a manner that preserves encoded multi-byte UTF-8 and UTF-16 characters
timers
Module exposes a global API for scheduling functions to be called at some future period of time.
tls
Module provides an implementation of the Transport Layer Security (TLS) and Secure Socket Layer (SSL) protocols that is built on top of OpenSSL.
trace_events
Provides a mechanism to centralize tracing information generated by V8, Node.js core, and userspace code.
tty
Module provides the tty.ReadStream and tty.WriteStream classes.
dgram
Provides an implementation of UDP Datagram sockets.
url
Provides utilities for URL resolution and parsing.
util
Designed to support the needs of Node.js' own internal APIs.
v8
Exposes APIs that are specific to the version of V8 built into the Node.js binary.
vm
Provides APIs for compiling and running code within V8 Virtual Machine contexts.
worker_threads
provides a way to create multiple environments running on independent threads, and to create message channels between them.
zlib
Provides compression functionality implemented using Gzip and Deflate/Inflate.


Previous                                                 Next                                                 Home

No comments:

Post a Comment