slowmodetime
v1.0.3
Published
Timeout's made simple
Downloads
15
Readme
Usage
- Import the package into your project.
- Call the
timepackfunction with amessageobject andargsarray.
The args array should contain the timeout duration in milliseconds.
Example:
const slowmodetime = require('slowmodetime');
const message = 'Hello, World!';
const args = [2000]; // timeout duration in milliseconds
slowmodetime.time(message, args)
.then(() => {
console.log('Timeout completed');
})
.catch((error) => {
console.error('Error:', error);
});