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 tag renders as emphasized text, displaying the text oblique?
<strong> <pre> <em><p>Web development courses: <em>CoursesWeb.net</em></p>
Which CSS property defines the space between the element border and its content?
margin padding positionh3 {
padding: 2px 0.2em;
}
Click on the method which returns the first element that matches a specified group of selectors.
getElementsByName() querySelector() querySelectorAll()// gets first Div with class="cls", and shows its content
var elm = document.querySelector("div.cls");
alert(elm.innerHTML);
Indicate the PHP variable that contains data from a form sent with method="post".
$_SESSION $_GET $_POSTif(isset($_POST["field"])) {
echo $_POST["field"];
}