Some nice to have addons to the native node fs module
klei-fs module contains some nice to have addons to the native node.js fs (filesystem) module.
npm install klei-fs
var fs = require'klei-fs';// Now you can use it as the native fs module,// and you also have access to klei-fs own functions
Reads a directory (like fs.readdir), iterates over all files and returns the full file path to the callback. (i.e. you don't have to do a
path.join(dir, file) in order to read the file)