npm.io
1.0.4 • Published 4 years ago

waiting-js

Licence
ISC
Version
1.0.4
Deps
0
Size
2 kB
Vulns
0
Weekly
0

Waiting-js

Very useful for timing code, or waiting.
First package made by Veqsa

Installation

How to install the waiting package using npm

npm install waiting-js

Usage

How to use the waiting package

const waiting = require('waiting-js')
waiting.sleep({
    time: 1, // Amount of time the code should wait
    time_format: 'seconds' // Format of the time
})
time_format
  • Hours - 'hours', 'h'
  • Minutes - 'minutes', 'min', 'm'
  • Seconds - 'seconds', 'sec', 's'