UNPKG

w8.js

Version:

an alternative method to SetTimeout() using promises

25 lines (18 loc) 340 B
## Installation : ```sh $ npm install w8.js ``` ## Using : ```sh wait(6000).then().then()... ``` ## Example : ```sh var wait = require('w8.js'); wait(4000).then(function(){ console.log("Hello world"); }); // -> will print "Hello World" After 4 Seconds. ``` ## Contact : Azri Hamza <azri.hamza7@gmail.com>