1.0.11 • Published 2 years ago

timemate v1.0.11

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

TimeMate

TimeMate is a lightweight time-based toolbox built with ethers development in mind.

Installation

Using npm:

npm i timemate

Importing jsonlitedb to your Node Project:

const timemate = require(‘timemate’)

Usage

TimeMate features two functions:

wait

Halts your script for your defined period of time.

This function has one mandatory parameter: 1. Your desired delay in milliseconds

Example

await wait(5000)
// Expected result: script would wait for 5 seconds.
  

unixTimestamp

Converts current time in milliseconds to seconds in unix format.

This function has no parameters

Example

// If today were January 1st, 2000 at 10:00 (1/1/2000 10:00)

unixTimeStamp() // Would return: 946749600
1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago