1.0.0 • Published 3 years ago
test-one-three v1.0.0
One
Function sleep
for JavaScript.
one(seconds) -> Promise
Installation
npm i one-two-three-four
Usage
const one = require('one-two-three-four');
const test = async () => {
console.log('text1');
await one(2); //sleep for 2 seconds
console.log('text2');
};
test();
1.0.0
3 years ago