last-ran
v1.0.0
Published
get and set when a script/function was last executed
Downloads
1
Readme
last-ran
get and set when a script/function was last executed
usage
npm i last-ran
or
npm i -D last-ran
const lastRan = require("last-ran");
fileWalker({
entry: "path/to/start/directory",
readFiles: true, // fs.readFileSync the files. default: false
onDirectory: response => {
console.log(response); // callback when directory, object passed with directory details
},
onFile: response => {
console.log(response); // callback when file, object passed with file details
} // will inc. contents if readFile: true
});