Photo by H C on Unsplash

More articles in this area

Article

Managing different node version with nvm on Windows

Nvm ( Node Version Manager ) allows you to quickly install and use different versions of node via the command line.

Article

Env vars, process and globals in NodeJS

You can define custom env variables in two ways:

Article

Event Loop in NodeJS

Slow I/O operations such as accessing disk and network resources are handled via Node's Event Loop . The Event Loop is started once you run a node script and exits once there are no more callbacks to…

Article

Executing commands and files in NodeJS

There are a couple of ways to execute files and commands, but all use the module child_process .

Article

File system operations in NodeJS

Node offers both, sync and async methods to handle files. Sync methods (having sync in the method name, e.g. fs.readFileSync() ) will block the execution of the program until it has finished…

Article

Load balancing an HTTP server with cluster module

There are many strategies to scale your application:

Article

NodeJS modules

In the REPL all node modules are already present so you do not have to explicitly require() them first. But when you write your own files you must choose between one of two options:

Article

Streams in NodeJS

Streams are collections of data that might not be available all at once and don't have to fit in memory all at once. For example if you want to serve a file that is 1GB over HTTP you would create a…

Article

V8 and the REPL in NodeJS

Node's build-in JavaScript engine is V8, but others such as Chakra (by Microsoft) can be used. V8 has three feature groups:

Article

Working with HTTP and HTTPS in NodeJS

What you can achieve are things like:

Tags

Search articles

Type a word to search published articles.

Open the search page