A convenient library 📚 to extent the capabilities from fs
node.js library, where all of the applied functions are automatically recursive and async (unless the sync version is used if applicable).
Throws an error
when a passed file or files do not exists
Based on a predicate
returns a string
Array containing all matches.
Iterates recursively given throu the folder names and upon the observe option executes a watcher
every time it passes files
, folders
or both
.
Reads the contents from a file and returns it as a string
object.
Extracts the contents from a file and returns it as a Buffer
object.
Will create a directory and all of its predecesors if does not exist.
Copies content from one place to another.
- If the source is the same as the destination, all the contents will be copied exactly as they are.
- If the source is a file and the destination a folder a copy from the file will be copied to the folder
- If the source is a folder and the destination a file will
throw
an Error
Will remove from the disk a directory and all of its descendants if exist.
Will remove from the disk all the inner content from a directory.
Finds synchronously a file with possible extensions withing a route
Reolves a set of paths forcing the base folder to be current working directory (uses cwd
).
Pipes functions to apply multiple actions to some content