Marcus

Marcus is a fullstack JS developer. He’s passionate about the hapi framework for Node.js and loves to build web apps and APIs. Creator of Futureflix and the “learn hapi” learning path.


Node.js — Check if a Path is a File URL

Node.js includes the needed functionality to interact with files on your local hard disk. Typically, you’re referencing files on disk using a file path. This path can have different formats, like a relative or an absolute path or a file URL. With the transition to ECMAScript modules developers …

Continue Reading

Node.js — Check if a Path is a Socket

Interacting with files on your local hard disk is a common task in application development. Node.js comes with the necessary tooling to do so. The Node.js fs core module provides lots of functions to read, write, delete, and interact with files and directories. This tutorial shows you how …

Continue Reading

Node.js — Determine the Current Operating System

In some situations, you may want to detect the underlying operating system of your application. This may happen if you’re using a feature switch or limited feature support on a given platform. For example, you may allow special characters on Unix-based systems and not on Windows. This tutorial shows …

Continue Reading

Node.js — Delete a File From Disk

Node.js provides the node:fs core module allowing you to interact with the local file system. You can create, read, update, or delete files on your computer’s hard disk. This tutorial shows you how to delete a file from your local disk. {{outline}} Delete a File From Local …

Continue Reading

Explore the Library

Find interesting tutorials and solutions for your problems.