Skip to content

Commit

Permalink
Docs: Add logo and badges
Browse files Browse the repository at this point in the history
  • Loading branch information
phated committed Jun 11, 2016
1 parent f066856 commit 1684631
Showing 1 changed file with 29 additions and 4 deletions.
33 changes: 29 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
<p align="center">
<a href="http://gulpjs.com">
<img height="257" width="114" src="https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png">
</a>
</p>

# last-run

[![Travis Build Status](https://img.shields.io/travis/gulpjs/last-run/master.svg?label=travis&style=flat-square)](https://travis-ci.org/gulpjs/last-run)
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url]

Capture and retrieve the last time a function was run
Capture and retrieve the last time a function was run.

## Usage

Expand Down Expand Up @@ -38,8 +44,8 @@ On node v0.10 or with file system like HFS or FAT, `fs.stat` time attributes lik
Assuming `lastRun(fn)` returns 1426000001111, `lastRun(fn, 1000)` returns 1426000001000.

The default time resolution is 1000 on node v0.10, 0 on node 0.11+ and iojs.
More information at [`default-resolution`](https://github.com/gulpjs/default-resolution) and
[undertaker PR #17](https://github.com/gulpjs/undertaker/pull/17#issuecomment-82374512).
More information at [`default-resolution`][default-resolution] and
[undertaker PR #17][undertaker-17].

### lastRun.capture(fn, [timestamp])

Expand All @@ -54,3 +60,22 @@ Takes a function (`fn`) and removes the last run timestamp for it.
## License

MIT

[default-resolution]: https://github.com/gulpjs/default-resolution
[undertaker-17]: https://github.com/gulpjs/undertaker/pull/17#issuecomment-82374512

[downloads-image]: http://img.shields.io/npm/dm/last-run.svg
[npm-url]: https://www.npmjs.com/package/last-run
[npm-image]: http://img.shields.io/npm/v/last-run.svg

[travis-url]: https://travis-ci.org/gulpjs/last-run
[travis-image]: http://img.shields.io/travis/gulpjs/last-run.svg?label=travis-ci

[appveyor-url]: https://ci.appveyor.com/project/gulpjs/last-run
[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/last-run.svg?label=appveyor

[coveralls-url]: https://coveralls.io/r/gulpjs/last-run
[coveralls-image]: http://img.shields.io/coveralls/gulpjs/last-run/master.svg

[gitter-url]: https://gitter.im/gulpjs/gulp
[gitter-image]: https://badges.gitter.im/gulpjs/gulp.svg

0 comments on commit 1684631

Please sign in to comment.