Node.js

Node.js is a JavaScript runtime that allows for server-side scripting, enabling the development of scalable network applications using a non-blocking, event-driven architecture.

How to Write C/C++ Addons for Node.js

Updated: December 28, 2023 By: Guest Contributor

Overview Node.js is a powerful platform for building network applications. It is written in C, C++, and JavaScript, providing a versatile environment for developers. While JavaScript is the…

Node.js & Express: How to Upload Files Using Multer

Updated: December 28, 2023 By: Guest Contributor

Overview Multer is a Node.js middleware for handling multipart/form-data, which is primarily used for uploading files. It is written on top of busboy (busboy – not badboy –…

How to Read and Write Text Files (.txt) in Node.js

Updated: December 28, 2023 By: Guest Contributor

Overview Node.js is a powerful JavaScript runtime built on Chrome’s V8 engine. It provides a rich set of filesystem operations through its ‘fs’ module, which can be used…

How to Setup a Node.js Cluster for Speed & Stability

Updated: December 28, 2023 By: Guest Contributor

Learn how to setup a Node.js cluster to improve the speed and stability of your project. Overview Node.js is a powerful JavaScript runtime built on Chrome’s V8 engine….

Using Environment Variables in Node.js (3 Approaches)

Updated: December 28, 2023 By: Guest Contributor

Explore 3 different approaches to managing environment variables (env) in Node.js projects. Solution 1: dotenv Package The dotenv package is a zero-dependency module that loads environment variables from…

3 Ways to Convert Callbacks to Promises in Node.js

Updated: December 28, 2023 By: Guest Contributor

Some different ways to convert callbacks to promises in Node.js applications. Utilizing Promisify Utility The util.promisify function is a built-in utility in Node.js that converts a callback-based function…

How to Send Email in Node.js (3 Approaches)

Updated: December 28, 2023 By: Guest Contributor

Solution 1: Using Nodemailer Nodemailer is a popular Node.js module for sending emails. It supports multiple transport methods, including SMTP and direct sending. Pros: Easy to use; supports…

How to Add Watermark to Images in Node.js (3 Ways)

Updated: December 28, 2023 By: Guest Contributor

Adding watermarks to images can be essential for copyright protection, preventing unauthorized use or distribution of your images. It helps in branding, ensuring your logo or name is…

Node.js Streams: Tutorial & Examples

Updated: December 28, 2023 By: Guest Contributor

Streams are an essential feature in Node.js that allow you to read or write data in a continuous flow. In Node.js, streams are instances of the EventEmitter class…

Node.js: How to use Handlebars to render HTML templates

Updated: December 28, 2023 By: Guest Contributor

Handlebars is a popular templating engine that is used to create dynamic HTML templates. It extends the Mustache templating language by adding powerful features like helpers and more…

1 52 53 54 55 56