1.0.0 • Published 2 years ago

last-seen-date v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

��# last-seen

Description

This package is used to help get last seen timelines once you pass in date strings

Usage

const output = lastSeen('03/25/2022');

output: This contains the returned date value based on the date string passed into the function

date* - required | string

Code Demonstration

//With short date strings option

const output = lastSeen('08/01/2022');

console.log(output); // Outputs '1 days ago'

//With ISO date strings option

const output = lastSeen('2022-01-08');

console.log(output); // Outputs '1 days ago'


Thank you