passingtimejs

1.0.3 • Public • Published

Passingtimejs

Finds how much time has elapsed from the given Date object

Examples

const passingtimejs = require("passingtimejs");
passingtimejs(new Date(2022, 0, 19)); // return "1 year ago"
const passingtimejs = require("passingtimejs");
passingtimejs(new Date(2022, 0, 19), true); // return ms as a number like 56640384000000```

Package Sidebar

Install

npm i passingtimejs

Weekly Downloads

3

Version

1.0.3

License

ISC

Unpacked Size

3.44 kB

Total Files

4

Last publish

Collaborators

  • emrecanterzi