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 is a block element?
<div> <img> <span><div>Web Programming and Development</div>
Which CSS code displays the text underlined?
font-style: italic; text-decoration: underline; font-weight: 500;h2 {
text-decoration: underline;
}
Click on the JavaScript function that can access other function after a specified time.
insertBefore() setTimeout() querySelector()function someFunction() { alert("CoursesWeb.net"); }
setTimeout("someFunction()", 2000);
Click on the instruction that returns the number of items of a multidimensional array in PHP.
count($array) count($array, 1) strlen()$food =["fruits" =>["banana", "apple"), "veggie" =>["collard", "pea"));
$nr_food = count($food, 1);
echo $nr_food; // 6