Node.js has a set of
core modules (
built-in modules) which you can use without any further installation. They are defined within Node.js's source and are located in the lib/ folder.
- Here is a list of the built-in modules of Node.js version 8.1:
- Assert - Provides a set of assertion tests
- Buffer - To handle binary data
- Child Process - To run a child process
- Cluster - To split a single Node process into multiple processes
- 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
- dgram - Provides an implementation of UDP Datagram sockets
- dns - To do DNS lookups and name resolution functions
- Events - To handle events
- fs - To handle file system
- http - To make Node.js act as an HTTP server
- https - To make Node.js act as an HTTPS server
- Net - To create servers and clients. Provides an asynchronous network API for creating stream-based TCP or IPC servers and clients
- OS - Provides information about the operation system
- path - To handle file and directory paths
- querystring - To handle URL query strings
- readline - To handle readable streams one line at the time
- REPL - Provides a Read-Eval-Print-Loop (REPL) implementation that is available both as a standalone program or includible in other applications
- Stream - An abstract interface for working with streaming data in Node.js
- String Decoder - Provides an API for decoding Buffer objects into strings
- Timers - To execute a function at some future period of time, or after a given number of milliseconds
- TLS - To implement Transport Layer Security (TLS) and Secure Socket Layer (SSL) protocols
- TTY - Provides the tty.ReadStream and tty.WriteStream classes, used by a text terminal
- URL - To parse URL strings
- Util - To access utility functions
- V8 - Exposes APIs that are specific to the version of V8 built into the Node.js binary
- VM - To compile and run JavaScript code in a virtual machine
- Zlib - To compress or decompress Gzip files
Daily Test with Code Example
HTML
CSS
JavaScript
PHP-MySQL
Which attribute specifies the HTTP method (GET, POST) used to submit the form-data?
action method value<form action="script.php" method="post"> ... </form>
Which CSS property allows to add shadow to boxes?
background-image box-shadow border-radius#id {
background-color: #bbfeda;
box-shadow: 11px 11px 5px #7878da;
}
Which function removes the first element from an array?
pop() push() shift()var fruits = ["apple", "apricot", "banana"];
fruits.shift();
alert(fruits.length); // 2
Indicate the function that can be used to check if a PHP extension is instaled.
function() filetype() extension_loaded()if(extension_loaded("PDO") === true) echo "PDO is available."