Latest Node.js Tutorials and How-To's

nodejs
How to Install and Use AWS Node.js SDK - Getting Started Tutorial
This tutorial discusses installation of AWS Node.js SDK and getting started with it.
July 3, 2020

nodejs
Get Date and Time for a Given Timezone in Node.js
The toLocaleString() method of the Date() object can be used to get date and time for a given IANA timezone name in Node.
February 10, 2020

nodejs
Base64 Encoding and Decoding in Node.JS
Node.js does not support the standard Javascript methods of atob() and btoa() for base64 conversions. Encoding and decoding base64 data in Node can be done through the inbuilt Buffer module.
February 1, 2020

nodejs
Getting Date and Time in Node.js
In Node.js date and time are handled with the Javascript Date object. It is loaded by default and requires no import of modules.
June 29, 2019

nodejs
Creating and Starting a Web Server in Node.js
The built-in http / https modules can be used to create a HTTP / HTTPS server in Node.
June 8, 2019

nodejs
Making Synchronous HTTP Requests in Node.js
A synchronous HTTP request will wait for the request to be made and full response to come. Synchronous HTTP requests are possible in Node.js with the use of Javascript Promises, async and await.
May 21, 2019

nodejs
Making GET Requests in Node.JS
HTTP GET requests can be made through Node using the http module.
May 16, 2019

nodejs
Making POST Requests in Node.JS
This tutorial discusses how to send a HTTP POST request from Node using the http module.
May 14, 2019

nodejs
Running Cron Jobs in Node.js
Cron jobs are important when some script is required to be executed at a fixed time over and over again. In Node.js cron jobs can be setup using an external module known as node-cron.
January 15, 2019

javascript
Using the Reviver Function in JSON.parse
JSON.parse accepts an optional second parameter - the reviver function. The purpose of this function is to modify the result before returning, and can be thought of as filter function.
January 9, 2019

nodejs
Reading JSON in Node.js
The standard built-in Javascript object JSON can be used to parse json strings.
January 3, 2019

nodejs
Reading XML in Node.js
The "xml2js" module can be used to read XML files in Node. In case if the file is huge, the "node-xml-stream" module can be used to read XML as a stream.
December 27, 2018

nodejs
How to Crop Images in Node.js
The Sharp module can be used to crop an image in Node.
December 21, 2018

nodejs
Resizing Images in Node.js
The Sharp Node.js module can be used to resize large images of any common file-type to web-friendly images of any dimension. It claims to be multiple times faster than ImageMagick and GraphicsMagick.
December 4, 2018

nodejs
Node.js - Reading a File Line by Line
In some cases you may need to read a file, line by line, asynchronously. This can be done by the Readline module that reads data from a readable stream and emits an event after reading each line.
November 22, 2018

nodejs
Getting POST Parameters in Node.js
POST parameters can be read with the querystring module. In case of a multipart/form-data POST request, external modules are required.
October 18, 2018

nodejs
How to Get URL Parameters in Node.js
URL parameters can be in read in Node.js by importing the built-in url module, and using the URL and URLSearchParams objects present in it.
October 15, 2018

nodejs
Routing in Node.js (without framework)
Frameworks such as ExpressJS makes routing quite easy. But initially it is important to understand how routing works in Node.js, and not to jump to ExpressJS straightaway.
October 10, 2018

nodejs
How to Write a REST API Class for Node.js
While implementing an API with Node.js, it is better to write it as a class, create a module, and import the module in the main Node.js script. This tutorial describes general coding guidelines how you can create such a class.
June 9, 2018

javascript
Javascript Promises - Understanding Chaining and Error Handling
Javascript Promises are quite simple to start with, but confusions arise when Promises are chained. This tutorial focuses on the return values of then() and catch(), which are crucial to understanding the process.
June 7, 2018
New & Upcoming Javascript / Web Platform Features

Pan / Tilt / Zoom Support for Camera in getUserMedia()

Javascript Logical Assignment Operators

Intersection Observer Now Also Accepts a Document as the Root Element

Javascript String.replaceAll() Method

Better Caching With stale-while-revalidate Directive in Cache-Control Header

Synchronous AJAX Will Not Work in Page Dismissal Events

Javascript globalThis Property

Javascript Hashbang Comment Syntax