Node fs API tweaked for modern usage
npm install proper-fsfs module, but with the following changes:
util.promisify for lowest possible overhead.
watchFile/unwatchFile are not included, due to watch being the recommended method.
isCaseSensitive boolean after checking the current platform.
fileExists and fileExistsSync
directoryExists and directoryExistsSync
ensureDirectory and ensureDirectorySync
fs methods are callback-based. I find myself promisifying Node's methods over and over. Node 10 already exposes Promise-based API, but I needed a low-overhead solution that works on both Current and LTS versions.