# simple-timeago

> simple time-ago to words

Latest version **1.0.0** (published 2015-05-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install simple-timeago
pnpm add simple-timeago
yarn add simple-timeago
bun add simple-timeago
```

## 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 | 2015-05-06 |
| First published | 2015-05-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Alexander Vados |
| Maintainers | alexander-daniel |

## Links

- npm: https://www.npmjs.com/package/simple-timeago
- Repository: https://github.com/alexander-daniel/simple-timeago
- Issues: https://github.com/alexander-daniel/simple-timeago/issues
- npm.io page: https://npm.io/package/simple-timeago

## Dependencies (1)

- [tape](https://npm.io/package/tape.md) ^4.0.0

## Recent versions

- 1.0.0 (latest) — 2015-05-06

## README

# simple-timeago  [![Build Status](https://travis-ci.org/alexander-daniel/simple-timeago.svg?branch=master)](https://travis-ci.org/alexander-daniel/simple-timeago)
Create simple human-readable fuzzy-timestamps

# example
```javascript
var timeAgo = require('simple-timeago');

var startTime = new Date();
var thirtyOneMinutesAgo = new Date(startTime - 1.86e+6);

console.log(timeAgo(thirtyOneMinutesAgo));
// 31 minutes ago
```

# methods
```javascript
var timeAgo = require('simple-timeago');
```

## timeAgo(since, until)
- `since` - `Date` object to calculate time-since from.
- `until` - `Date` object to calculate time-since to. (Optional, defaults to *now* (`new Date()`))

Returns a `string` of fuzzy time.

# install
```bash
npm install simple-timeago
```

# test
```bash
npm test
```

# license
MIT

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