Very useful for timing code, or waiting.
First package made by Veqsa
How to install the waiting package using npm
npm install waiting-js
How to use the waiting package
const waiting = require('waiting-js')
waiting.sleep({
time: 2, // Amount of time the code should wait
time_format: 'seconds' // Format of the time
})
- Hours - 'hours', 'h'
- Minutes - 'minutes', 'min', 'm'
- Seconds - 'seconds', 'sec', 's'