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 folders
Strip comments from JSON. Lets you use comments in your JSON files!
Strip UTF-8 byte order mark (BOM) from a string
Get, set, or delete a property from a nested object using a dot path
Strip leading whitespace from each line in a string
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 whitespace on the right
Trim newlines from the start and/or end of a string
Delete nested properties from an object using dot notation.
Clean files and folders
decache (Delete Cache) lets you delete modules from node.js require() cache; useful when testing your modules/projects.
Similar to String#trim() but removes only newlines
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
Strip comments from CSS
Recursively omit empty properties from an object. Omits empty objects, arrays, strings or zero.
Remove nodes from Unist tree
Delete files and directories - Cross-platform
powered by npms.io 🚀