last-ran

1.0.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i last-ran

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

2.47 kB

Total Files

5

Last publish

Collaborators

  • paul-browne