Articles tagged in: Node.js



Node.js — How to Touch a File

UNIX-based operating systems have a touch utility available on the command line. touch updates the access and modification times of a given file to the current time. A nice benefit: touch also creates the given file if it doesn’t exist. This tutorial shows you how to implement a touch-like …

Continue Reading

Node.js — Check If a Path Is a File

When interacting with the local hard disk, you may need to check whether an existing path is a file or a directory. Node.js comes with the fs core module providing dozens of useful low-level methods to interact with the hard disk. This tutorial shows you how to compose an …

Continue Reading

Node.js — Check If a Path Is a Directory

You may want to determine whether a given path is a directory when working with the file system in Node.js. Node.js comes with the fs core module allowing you to interact with the local hard disk. This tutorial shows you how to combine existing fs methods to determine …

Continue Reading

Explore the Library

Find interesting tutorials and solutions for your problems.