1.3.1 • Published 4 years ago

timepass.aps v1.3.1

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

timepass.aps

calculate time in diffrent format for creating somethig in which you want time like

  • created 20 second ago
  • created 4 hours ago
  • created 1 month ago
  • created 2 year ago

install package

type this command in terminal to install timepass.aps module

npm install timepass.aps

how to use

while creating there schema include current_time value to db in which store current time Date.now() after that just fetch that value from db and pass into getMoment() function and this function will return you that value like created 20 second ago

const apsmoment = require('timepass.aps');

const time = CREATE_DATE_FROM_DB;

const moment = apsmoment.getMoment(time);

console.log(moment);

Finctions

  • getMoment()
  • getCounter()

Author

Arun singh

1.3.1

4 years ago

1.2.13

4 years ago

1.2.12

4 years ago

1.2.11

4 years ago

1.2.10

4 years ago

1.0.2

4 years ago