nt

number-timeago

A number timeago package support 2..years.ago() method

Showing:

Popularity

Downloads/wk

1

GitHub Stars

12

Maintenance

Last Commit

5yrs ago

Contributors

1

Package

Dependencies

0

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

number-timeago Build Status

A number timeago package support 2..years.ago() method

Install

$ npm install number-timeago

It's also available on NPMCDN https://unpkg.com/number-timeago@0.1.1/number.timeago.js

Usage

Node.js CommonJS

require("number-timeago")();

AMD

require(['number-timeago'], function (NumberTimeAgo) {
  NumberTimeAgo();
});  

then

// seconds
20..seconds // => 20,000 milliseconds
// minutes
10..minutes // => 600,000 milliseconds
// weeks, days, months, years so on

// time ago
2..months.ago() // will return 2 months ago Date object
// => Mon Mar 28 2016 11:46:07 GMT+0800 (CST)

License

MIT © Falm

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial