1.0.0 • Published 3 years ago

last-ran v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
3 years ago

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
});