node-fs-extra - Node.js: extra methods for the fs object like copy(), remove(), mkdirs()

  •        5

fs-extra adds file system methods that aren't included in the native fs module and adds promise support to the fs methods. It should be a drop in replacement for fs.I got tired of including mkdirp, rimraf, and ncp in most of my projects.

https://github.com/jprichardson/node-fs-extra

Tags
Implementation
License
Platform

   




Related Projects

wrench-js - Recursive file operations in Node.js


wrench.js is deprecated, and hasn't been updated in quite some time. I heavily recommend using fs-extra to do any extra filesystem operations. Wrench was built for the early days of Node, and it solved a problem that needed solving. I'm proud of what it's done; at the time of writing this, it was still downloaded over 25,000 times yesterday, and over 500,000 times in the last month. The fact that it wound up being embedded in so many projects is humbling and a great source of fun for me, but I just don't have the time to keep up with this at the moment. No alternate maintainers have appeared, and fs-extra is very well maintained anyway - one community solution is likely better.

node-jsonfile - Easily read/write JSON files.


Easily read/write JSON files in Node.js. Note: this module cannot be used in the browser.Writing JSON.stringify() and then fs.writeFile() and JSON.parse() with fs.readFile() enclosed in try/catch blocks became annoying.

FCFileManager - iOS File Manager on top of NSFileManager for simplifying files management.


iOS File Manager on top of NSFileManager for simplifying files management. It provides many static methods for executing most common operations with few lines of code. It works by default in the Documents directory to allow use of relative paths, but it's possible to work easily on any other directory. Copy FCFileManager.h and FCFileManager.m to your project.

watchr - Better file system watching for Node


Watchr provides a normalised API the file watching APIs of different node versions, nested/recursive file and directory watching, and accurate detailed events for file/directory creations, updates, and deletions.Older environments may need Babel's Polyfill or something similar.

del - Delete files and directories


Similar to rimraf, but with a Promise API and support for multiple files and globbing. It also protects you against deleting the current working directory and above.Support this project and improve your JavaScript skills with this great ES6 course by Wes Bos. Try his free JavaScript 30 course for a taste of what to expect. You might also like his React and Sublime course.


copy-webpack-plugin - Copy files and directories with webpack


ℹ️ If you want webpack-dev-server to write files to the output directory during development, you can force it with the write-file-webpack-plugin.

fs-jetpack - Better file system API for Node.js


Node's fs library is very low level and because of that often painful to use. fs-jetpack wants to fix that by giving you completely rethought, much more convenient API to work with file system.Check out EXAMPLES to see few snippets what it can do.

vinyl-fs - Vinyl adapter for the file system.


Vinyl adapter for the file system. Vinyl is a very simple metadata object that describes a file. When you think of a file, two attributes come to mind: path and contents. These are the main attributes on a Vinyl object. A file does not necessarily represent something on your computer’s file system. You have files on S3, FTP, Dropbox, Box, CloudThingly.io and other services. Vinyl can be used to describe files from all of these sources.

mock-fs - Configurable mock for the fs module


The mock-fs module allows Node's built-in fs module to be backed temporarily by an in-memory, mock file system. This lets you run tests against a set of mock files and directories instead of lugging around a bunch of test fixtures. The code below makes it so the fs module is temporarily backed by a mock file system with a few files and directories.

BrowserFS - BrowserFS is an in-browser filesystem that emulates the Node JS filesystem API and supports storing and retrieving files from various backends


BrowserFS is an in-browser file system that emulates the Node JS file system API and supports storing and retrieving files from various backends. BrowserFS also integrates nicely into the Emscripten file system. More backends can be defined by separate libraries, so long as they extend the BaseFileSystem class. Multiple backends can be active at once at different locations in the directory hierarchy.

node-graceful-fs - fs with incremental backoff on EMFILE


graceful-fs functions as a drop-in replacement for the fs module, making various improvements.The improvements are meant to normalize behavior across different platforms and environments, and to make filesystem access more resilient to errors.

PHP File Manager


phpFileManager is a complete filesystem management tool on a single file. Features: server info, directory tree, copy/move/delete/create/rename/edit/view/chmod files and folders, tar/zip/bzip/gzip, multiple uploads, shell/exec, works on linux/windows

Grinder


Grinder is a file processing engine built on Windows Workflow. The purpose of Grinder is to make file processing chores as simple as possible. It provides all of the usual file handline routines (copy/move/delete) along with extra features like FTP, HTTP Put, ZIP/UNZIP and a ...

node-mkdirp - Recursively mkdir, like `mkdir -p`, but in node.js


Create a new directory and any necessary subdirectories at dir with octal permission string opts.mode. If opts is a non-object, it will be treated as the opts.mode.If opts.mode isn't specified, it defaults to 0777 & (~process.umask()).

zbox - Zero-details, privacy-focused embeddable file system.


Zbox is a zero-details, privacy-focused embeddable file system. Its goal is to help application store files securely, privately and reliably. By encapsulating files and directories into an encrypted repository, it provides a virtual file system and exclusive access to authorised application. Unlike other system-level file systems, such as ext4, XFS and Btrfs, which provide shared access to multiple processes, Zbox is a file system that runs in the same memory space as the application. It only provides access to one process at a time.

.NET Transactional File Manager


Transactional File Manager is a .NET API that supports including file system operations such as file copy, move, delete, append, etc. in a transaction. It's an implementation of System.Transaction.IEnlistmentNotification (works with System.Transactions.TransactionScope).

Chitragupta File System


ChitraguptaFS is a simple file system based on FUSE written in C language for logging FS events. ChitraguptaFS comprises of two parts, one is the FS itself and the other is a simple utility to retrieve FS logs.

tfs - Next Generation File System


TFS is a modular, fast, and feature rich next-gen file system, employing modern techniques for high performance, high space efficiency, and high scalability. TFS was created out of the need for a modern file system for Redox OS, as a replacement for ZFS, which proved to be slow to implement because of its monolithic design.

sane - sane aims to be fast, small, and reliable filesystem watcher


Don't worry too much about choosing the correct mode upfront because sane maintains the same API across all modes and will be easy to switch. Watches a directory and all its descendant directories for changes, deletions, and additions on files and directories.