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.
Trim newlines from the start and/or end of a string
Similar to String#trim() but removes only whitespace on the right
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
Strip UTF-8 byte order mark (BOM) from a stream
Strip UTF-8 byte order mark (BOM) from a buffer
Move files and folders to the trash
Remove nodes from Unist tree
Cascade delete with Bookshelf.js
Strip comments from CSS
Recursively omit empty properties from an object. Omits empty objects, arrays, strings or zero.
powered by npms.io 🚀