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