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 meta tag provides a short description of the page?
<meta content="..."> <meta description="..."> <meta http-equiv="..."><meta name="description" content="70-160 characters that describes the content of the page" />
Which CSS property is used to stop the wrapping effect of the "float"?
clear text-align position#some_id {
clear: both;
}
Click on the method which gets an array with all the elements in the document that have a specified tag name.
getElementsByName() getElementById() getElementsByTagName()var divs = document.getElementsByTagName("div");
var nr_divs = divs.length;
alert(nr_divs);
Indicate the PHP function which returns the number of elements in array.
is_[) count() strlen()$arr =[7, 8, "abc", 10);
$nri = count($arr);
echo $nri; // 4