1.0.6 • Published 1 year ago

fancy-time v1.0.6

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Fancy Time

A simple package for converting Unix to Readable.

npm.io CodeFactor GitHub license GitHub watchers GitHub stars npm.io Downloads

Usage

CDN Usage

<script src="https://cdn.jsdelivr.net/npm/fancy-time@1.0.4/dist/bundle.js"></script>

Node.js Usage

const { time, duration, timeStr } = require("fancy-time");

General Usage

const time = 1668714660167;

// time converts to human readable from unix
console.log(time(time)); // 19:51:00

// duration gets the human readable time between 2 unix values
console.log(duration(date)); // 6:45:26

// timeStr concatenates a normal string with a current readable time
console.log(timeStr("Lorem Ipsum Dolor Sit Amet")); // example: [19:51:00] Lorem Ipsum Dolor Sit Amet
1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago