Reports a given file's age (in days).
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README.md
agedays.js

README.md

agedays.js

Reports a given file's age (in days).

Requirements

You must have Node.js installed.

See the “Installation” article in the Node's wiki for instructions.

Usage

node agedays "filename" [N]

Parameters:

  • filename — name of the file which age (in days) is reported

  • N (optional) — if the file is N days old (or older), errorlevel 1 is set

Example

screenshot

License

MIT License, see the LICENSE file.