# last-ran

> get and set when a script/function was last executed

Latest version **1.0.0** (published 2021-02-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install last-ran
pnpm add last-ran
yarn add last-ran
bun add last-ran
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2021-02-16 |
| First published | 2021-02-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Paul Browne |
| Maintainers | paul-browne |

## Links

- npm: https://www.npmjs.com/package/last-ran
- Repository: https://github.com/Paul-Browne/npm-last-ran
- Homepage: https://github.com/Paul-Browne/npm-last-ran#readme
- Issues: https://github.com/Paul-Browne/npm-last-ran/issues
- npm.io page: https://npm.io/package/last-ran

## Recent versions

- 1.0.0 (latest) — 2021-02-16

## README

# last-ran
get and set when a script/function was last executed

### usage

`npm i last-ran`

or 

`npm i -D last-ran`


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

---
_Source: https://npm.io/package/last-ran · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
