Articles tagged in: Node.js



Overview of Promise-Based APIs in Node.js

Node.js introduced async/await as a language feature in version 8.0.0. With async/await the development flow changed to use promises instead of callbacks. Since then, the Node.js team added promise-based APIs to Node’s core. I’m continuously updating this overview of promise-based APIs in …

Continue Reading

How to Generage a UUID in Node.js

UUIDs are typically used as unique identifiers. You can also use them in JavaScript and Node.js. The Node.js team recently added native support to generate a UUID to Node.js’ crypto module. For earlier Node.js versions you may use a community package to generate a UUID. That’ …

Continue Reading

Node.js — Check If a Directory Is Empty

You want a solid and convenient experience when working with the file system in Node.js. The file system comes with its own challenges, like space limitations and access restrictions. Typically you also need to ensure a given state. For example, you want to delete all files from a given …

Continue Reading

Explore the Library

Find interesting tutorials and solutions for your problems.