Node Js Core Modules

 Node js is a javascript engine that allows to execute javascript. This engine comes with a set of core modules to implement basic functionalities.

Here is a brief of  list of core modules:

Console:

The console module provides a simple debugging console that is similar to the JavaScript console mechanism provided by web browsers.

http:

The HTTP interfaces in Node.js are designed to support many features of the protocol which have been traditionally difficult to use. In particular, large, possibly chunk-encoded, messages. The interface is careful to never buffer entire requests or responses--the user is able to stream data.

https:

HTTPS is the HTTP protocol over TLS/SSL. In Node.js this is implemented as a separate module.

fs:

File I/O is provided by simple wrappers around standard POSIX functions. To use this module do require('fs'). All the methods have asynchronous and synchronous forms.

module:

Node.js has a simple module loading system. In Node.js, files and modules are in one-to-one correspondence (each file is treated as a separate module).

querystring:

The querystring module provides utilities for parsing and formatting URL query strings.

stream:

A stream is an abstract interface for working with streaming data in Node.js. The stream module provides a base API that makes it easy to build objects that implement the stream interface

readline:

The readline module provides an interface for reading data from a Readable stream one line at a time

repl:

The repl module provides a Read-Eval-Print-Loop (REPL) implementation that is available both as a standalone program or includible in other applications.

timers:

The timer module exposes a global API for scheduling functions to be called at some future period of time. Because the timer functions are globals, there is no need to call require('timers') to use the API.

url:

The url module provides utilities for URL resolution and parsing.

zlib:

The zlib module provides compression functionality implemented using Gzip and Deflate/Inflate.


Comments

Popular posts from this blog

How to Use Crome Developer Tools: Crome Developer Tools