fs-extra contains methods that aren't included in the vanilla Node.js fs package. Such as mkdir -p, cp -r, and rm -rf.
Delete files and directories
Strip comments from JSON. Lets you use comments in your JSON files!
Get, set, or delete a property from a nested object using a dot path
Strip UTF-8 byte order mark (BOM) from a string
Strip leading whitespace from each line in a string
Similar to String#trim() but removes only whitespace on the right
Trim newlines from the start and/or end of a string
Clean files and folders
Return a copy of an object excluding the given key, or array of keys. Also accepts an optional filter function as the last argument.
Similar to String#trim() but removes only newlines
decache (Delete Cache) lets you delete modules from node.js require() cache; useful when testing your modules/projects.
Move files and folders to the trash
Strip UTF-8 byte order mark (BOM) from a stream
Strip UTF-8 byte order mark (BOM) from a buffer
Remove nodes from Unist tree
Strip comments from CSS
Recursively omit empty properties from an object. Omits empty objects, arrays, strings or zero.
Delete files and directories - Cross-platform
powered by npms.io 🚀