Simple setImmediate shim
setImmediate
$ npm install --save set-immediate-shim
var setImmediateShim = require('set-immediate-shim'); setImmediateShim(function () { console.log('2'); }); console.log('1'); //=> 1 //=> 2
MIT © Sindre Sorhus