2.0.0 • Published 8 years ago
nicer-fs v2.0.0
Nicer FS
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.
API
find- find file by glob patternreadFile- promisifiedfs.readFilewriteFile- promisifiedfs.writeFilereadJson- safely read json fileswriteJson- safely write json filesreadDir- promisifiedfs.readDirmkdir- same asmkdir -pcopy- same ascp [source] [target], works for files and foldersremove- same asrm -rf myfile myfolderexists- check if a file or folder existsreplaceExtension- easily replace a file extensiongetCallerFileName- get the name of the file a function is called in