An open API service indexing awesome lists of open source software.

https://github.com/afeiship/next-timeago

A time ago implement.
https://github.com/afeiship/next-timeago

next time timeago

Last synced: 2 months ago
JSON representation

A time ago implement.

Awesome Lists containing this project

README

        

# next-timeago
> A time ago implement.

[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]

## installation
```bash
npm install -S @jswork/next-timeago
```

## usage
```js
import '@jswork/next-timeago';

const str = nx.timeago('2017-03-15 13:10:45');
console.log(str);
```

## license
Code released under [the MIT license](https://github.com/afeiship/next-timeago/blob/master/LICENSE.txt).

[version-image]: https://img.shields.io/npm/v/@jswork/next-timeago
[version-url]: https://npmjs.org/package/@jswork/next-timeago

[license-image]: https://img.shields.io/npm/l/@jswork/next-timeago
[license-url]: https://github.com/afeiship/next-timeago/blob/master/LICENSE.txt

[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-timeago
[size-url]: https://github.com/afeiship/next-timeago/blob/master/dist/next-timeago.min.js

[download-image]: https://img.shields.io/npm/dm/@jswork/next-timeago
[download-url]: https://www.npmjs.com/package/@jswork/next-timeago