Article
A common development task is reading data from files. A common file format is the .csv format. While you can read CSV files using the fs module that comes with Node and get the content of the file, in most cases, parsing and further conversion is much easier with the...
Aniuchi Adaobi
JavaScript is a dynamically typed language, meaning that the interpreter determines the type of the variable at runtime. In practice, this allows us to use the same variable to store different types of data in the same code. It also means that without documentation and consistency, we do not always...
Marcus Sanatan
H2 is a lightweight database server written in Java. It can be embedded in Java applications, or run as a standalone server. In this tutorial, we'll review why H2 can be a good option for your projects. We'll also learn how to integrate H2 with Node.js by building a...
Leandro Cofre
In this article, we are going to take a look at what CORS is, how you can configure CORS with Express, and how to customize the CORS middleware to your needs. What is CORS CORS is shorthand for Cross-Origin Resource Sharing. It is a mechanism to allow or restrict requested...
Janith Kasun
Async Hooks are a core module in Node.js that provides an API to track the lifetime of asynchronous resources in a Node application. An asynchronous resource can be thought of as an object that has an associated callback. Examples include, but are not limited to: Promises, Timeouts, TCPWrap, UDP...
Allan Mogusu
In this article, we are going to talk about JavaScript Template Literals. They were also called Template Strings prior to the ES2015 specification. Other than that, we are also going to cover what Tagged Template Literals are and how we can use them with regular Template Literals. What is a...
Axios is a Promised-based JavaScript library that is used to send HTTP requests. You can think of it as an alternative to JavaScript's native fetch() function. We will be using features such as Promises, async/await, and other modern JavaScript design patterns in this tutorial. If you'd like to get...
Jest is a popular, open-source test framework for JavaScript. We can use Jest to create mocks in our test - objects that replace real objects in our code while it's being tested. In our previous series on unit testing techniques using Sinon.js, we covered how we can use Sinon....
In this tutorial, we are going to take a look at Node's native EventEmitter class. You'll learn about events, what you can do with an EvenEmitter, and how to leverage events in your application. We'll also cover what other native modules extend from the EventEmitter class and some examples to...
© 2013-2024 Stack Abuse. All rights reserved.