Synchronous File Utilities for Node.js CLIs

JSON →
library 0.2.2 ·javascript maintenance
verified May 27, 2026

file-utils is a Node.js library offering a set of synchronous file system utilities, derived from Grunt.file. It is primarily designed for command-line interface tools and user utilities, with explicit warnings against its use in Node.js server environments due to its blocking I/O nature. The package enables the creation of scoped file environments (`createEnv`) that automatically prefix paths for file operations, providing isolated contexts for managing files. It also supports "write filters" and "validation filters" which can modify file content/paths or control write actions, respectively. Filters can be asynchronous, which subsequently makes the `write` and `copy` methods asynchronous. The current stable version is 0.2.2, with its latest release focusing on internal cleanup and import performance improvements. Its release cadence is infrequent, and major changes between 0.1.x and 0.2.x primarily involved Node.js version support and the handling of file content types within filters.

total hits 9
actors 5 distinct systems
last hit 3d ago Bingbot
GPTBot
2
Script
1
Search engines
2

top countries 🇺🇸 United States · 🇷🇺 Russia · 🇨🇦 Canada · 🇩🇪 Germany