🚧 UNDER CONSTRUCTION: This page is a work in progress.
[toc]
Node.js is a JavaScript runtime environment built on Chrome's V8 JavaScript engine.
🎗️ TODO: Datatypes will be added TypeScript style.
ℹ️ 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.
- Assertion Testing
- Async Hooks
- Buffer
- C++ Addons
- C/C++ Addons with N-API
- Child Processes
- Cluster
- Command Line Options
- Console
- Diagrammed
- Documented
- Crypto
- Debugger
- Depricated APIs (probably should exclude this)
- DNS
-
Domain(deprecated) - ECMAScript Modules
- Errors
- Events
- File System
- HTTP
- HTTP/2
- HTTPS
- Inspector
- Internationalization
- Modules
- Net
- OS
- Path
- Performance Hooks
- Policies
- Process
- Punycode
- Query Strings
- Readline (VERY IMPORTANT!)
- REPL
- Report
- Stream
- String Decoder
- Timers
- TLS/SSL
- Trace Events
- TTY
- UDP/Datagram
- URL
- Utilities
- V8
- VM
- Worker Threads
- Zlib
ℹ️ NOTE: Depricated functions are not listed.
⚠️ WARNING! W3Schools didn't list ALL the modules!⛽ YMMV: This document ists the built-in modules for Node version 6.10.3.
🎗️ 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
}
assert provides a set of assertion tests.
buffer is used to handle binary data.
child_process is used to run a child process.
cluster is used to split a single Node process into multiple processes.
crypto handles OpenSSL cryptography functions.
dgram provides implementation of UDP datagram sockets.
dns is used to do DNS lookups and name resolution functions.
events are used to handle events.
fs is used to handle the file system.
http is used to make Node.js act as an HTTP server.
ℹ️ NOTE: You should really use
httpsinstead.
https is used to make Node.js act as an HTTPS server. The only difference between this and http is better security.
net is used to create servers and clients.
os provides information about the operating system.
path is used to handle file paths.
querystring is used to handle URL query strings. Often people will call this qs for short in the when the import it.
⚠️ querystring is NOT qs! There is a package calledqsthat is available on NPM, but it is NOT the same as our providedquerystringmodule!
readline is used to handle readable streams one line at the time.
stream is used to handle streaming data.
string_decoder is used to decode buffer objects into strings.
timer is used to execute a function after a given number of milliseconds.
tls is used to implement TLS and SSL protocols.
😵 No info?! W3School's doesn't have nay info on this class?
tty provides classes used by a text terminal.
url is used to parse URL strings. Compare this to querystring.
util is used to access utility functions.
v8 is used to access information about V8 (the JavaScript engine)
vm is used to complement JavaScript code into a virtual machine.
zlib is used to compress or decompress files.
domain- To handle and unhandle errorspunycode- A character encoding scheme
🎗️ TODO: Add references. Reference lines start with
[^ initials ]:
[^ njs-api ]: Node.js Documentation. v12.15.0 [^ v8 ]: v8.dev. [^ w3s-node ]: W3Schools.com. Node.js Built-in Modules.
#NodeJS #References