A completely async and better file system than node's internal fs module.
MIT License
Nicer fs is a collection of common file system function brought to the age of
promises. Main differences compared to fs-extra
is that nicer-fs
is lighter.
find
- find file by glob patternreadFile
- promisified fs.readFile
writeFile
- promisified fs.writeFile
readJson
- safely read json fileswriteJson
- safely write json filesreadDir
- promisified fs.readDir
mkdir
- same as mkdir -p
copy
- same as cp [source] [target]
, works for files and foldersremove
- same as rm -rf myfile myfolder
exists
- check if a file or folder existsreplaceExtension
- easily replace a file extensiongetCallerFileName
- get the name of the file a function is called in