:construction: UNDER CONSTRUCTION: This page is a work in progress.
[toc]
Node.js is a JavaScript runtime environment built on Chrome’s V8 JavaScript engine.
:reminder_ribbon: TODO: Datatypes will be added TypeScript style.
:information_source: NOTE: This list is not part of the documentation. It is a check list for things to take care of to complete it. Eventually this will be removed.
:information_source: NOTE: Depricated functions are not listed.
:warning: WARNING! W3Schools didn’t list ALL the modules!
:fuelpump: YMMV: This document ists the built-in modules for Node version 6.10.3.
:reminder_ribbon: TODO: Still need to get the mermaid diagram composed. This one was a good first atempt. It might be replaced later.
classDiagram
class Console {
+new Console(stdout[,stderr[,ignoreErrors]])
+new Console(options)
+console.assert(values[,...message])
+console.clear()
+count([label])
+console.countReset([label])
+console.debug(data[,...args])
+console.dir(obj[,options])
+console.dirxml(...data)
+console.error([data[,...args]])
+console.group([...label])
+console.groupCollapsed()
+console.groupEnd()
+console.info([data[,...args]])
+console.log([data[,...args]])
+console.table(tabularData[,properties])
+console.time([label])
+console.timeEnd([label])
+console.timeLog([label[,...data]])
+console.trace([message[,...args]])
+console.warn([data[,...args]])
%% ()
%% Inspector Only Methods()
+console.profile([label])
+console.profileEnd([label])
+console.timeStamp([label])
}
class fs
class Dir {
~fs
dir.close()
}
class Dirent {
~fs
}
assertassert provides a set of assertion tests.
bufferbuffer is used to handle binary data.
child_processchild_process is used to run a child process.
clustercluster is used to split a single Node process into multiple processes.
cryptocrypto handles OpenSSL cryptography functions.
dgramdgram provides implementation of UDP datagram sockets.
dnsdns is used to do DNS lookups and name resolution functions.
eventsevents are used to handle events.
fsfs is used to handle the file system.
httphttp is used to make Node.js act as an HTTP server.
:information_source: NOTE: You should really use
httpsinstead.
httpshttps is used to make Node.js act as an HTTPS server. The only difference between this and http is better security.
netnet is used to create servers and clients.
osos provides information about the operating system.
pathpath is used to handle file paths.
querystringquerystring is used to handle URL query strings. Often people will call this qs for short in the when the import it.
:warning: querystring is NOT qs! There is a package called
qsthat is available on NPM, but it is NOT the same as our providedquerystringmodule!
readlinereadline is used to handle readable streams one line at the time.
readline-sync?streamstream is used to handle streaming data.
string_decoderstring_decoder is used to decode buffer objects into strings.
timerstimer is used to execute a function after a given number of milliseconds.
tlstls is used to implement TLS and SSL protocols.
tty:dizzy_face: No info?! W3School’s doesn’t have nay info on this class?
tty provides classes used by a text terminal.
urlurl is used to parse URL strings. Compare this to querystring.
utilutil is used to access utility functions.
v8v8 is used to access information about V8 (the JavaScript engine)
vmvm is used to complement JavaScript code into a virtual machine.
zlibzlib is used to compress or decompress files.
domain - To handle and unhandle errorspunycode - A character encoding scheme:reminder_ribbon: TODO: Add references. Reference lines start with
[^ initials ]:
#NodeJS #References