A minimal abstraction layer for file storage that defaults to local disk but can be overridden via event handlers for custom backends like databases. Version 2.0.1 is the current stable release; the package is in maintenance mode with infrequent updates. Unlike cloud-centric storage libraries, it remains simple and synchronous in intent for Node.js projects needing local file I/O with optional extensibility.
npm install file-managerNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic file save/read operations and event-based custom handler registration for alternative storage backends.
Either provide a valid storage directory or register event handlers before calling methods.
Always pass a Buffer explicitly if you need precise control over encoding.
Iterate over the array returned by readFiles and inspect each object's error field.
Ensure directory is set correctly at construction or handle file migration separately.
Use: const FileManager = require('file-manager'); let manager = new FileManager(directory);Create the directory manually or use fs.mkdirSync before constructing FileManager.
Pass a Buffer: Buffer.from(data) or string that can be converted via .toString().
No dependency data recorded yet.