Install npm install neks-tick --save Usage var nextTick = require('neks-tick'); nextTick(function() { // log 2 after log 1 console.log(2);}); // fisrt log 1console.log(1); License MIT