Check if a path is a file, directory, or symlink
Check if a path exists
Read a package.json file
fs-extra contains methods that aren't included in the vanilla Node.js fs package. Such as mkdir -p, cp -r, and rm -rf.
Make a directory and its parents if needed - Think `mkdir -p`
Read the closest package.json file
User-friendly glob matching
Normalize slashes in a file path to be posix/unix-like forward slashes. Also condenses repeat slashes to a single slash and removes and trailing slashes, unless disabled.
Read and parse a JSON file
A drop-in replacement for fs, making various improvements.
A neat wrapper around node.js fs.watch / fs.watchFile / fsevents.
Matches strings against configurable strings, globs, regular expressions, and/or functions
Recursive version of fs.readdir with streaming API.
Easily read/write JSON files.
Use node's fs.realpath, but fall back to the JS implementation if the native one fails
Delete files and directories
Write data to a file, replacing the file if it already exists and creating any intermediate directories if they don't already exist. Thin wrapper around node's native fs methods.
Get the status of a file with some features