Skip to content

Tag Archives: Node.js-fs-module

The following approach covers how to send different HTML files based on the query parameters in Node.js Approach: The task can be easily fulfilled by… Read More
In this article, we will return an array of lines from a specified file using node.js. The fs module is used to deal with the… Read More
The fs(File System) module enables interacting with the file system in a way modeled on standard POSIX functions, which means we can perform I/O operations… Read More
Node.js File System module is used to handle file operations like creating, reading, deleting, etc. Node.js provides an inbuilt module called FS (File System). Node.js… Read More
The file system module or fs module is an inbuilt module in Node js which is used to work with files on the computer. The… Read More
The fs.rm() method is used to delete a file at the given path. It can also be used recursively to remove directories. Syntax: fs.rm( path,… Read More
The fs.rmSync() method is used to synchronously delete a file at the given path. It can also be used recursively to remove the directory by… Read More
In Node, the ‘fs’ module provides an API for interacting with the file system in a manner closely modeled around standard Portable Operating System Interface… Read More
The fs module provides an API for interacting with the file-system in a manner closely modeled around standard POSIX functions. All the file system operations… Read More
The fs.readlink() method is an inbuilt application programming interface of fs module which is used to asynchronously return a symbolic link’s value, i.e. the path… Read More
The fs.watch() method is an inbuilt application programming interface of fs module which is used to continuously watch for changes in the given file or… Read More
The fs.promises.link() method is an inbuilt application programming interface of the fs.promises class which is used to make a new name for a file. Syntax:… Read More
The fs.lstat() method is defined in the File System module of Node.js. The File System module is basically to interact with the hard disk of… Read More
The fs.writeFile() is a method defined in the File System module of Node.js. The File System module is basically to interact with the hard disk… Read More
The fs.rename() method is defined in the File System module of Node.js. The File System module is basically to interact with hard-disk of the user’s… Read More