1.0.1 • Published 3 years ago

aarsandi-time-format v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

aarsandi-time-format

Convert Date value to String.

Features

  • Converts date format to String ( like: just now, from now, ago, Yesterday, Tommorow, Last week, Next week and many more ).

Installing

using npm:

$ npm install aarsandi-time-format

Example

note: CommonJS Usage while using CommonJS imports with require( ).

const timeSince = require('aarsandi-time-format')

then passing any date value, as example use new Date.

const example = new Date
console.log(timeSince(example))
1.0.1

3 years ago

1.0.0

3 years ago