What nodejs library is most like jQuery's deferreds?

前端 未结 7 1990
失恋的感觉
失恋的感觉 2020-12-05 13:54

I\'ve become a skilled user of jQuery\'s new and amazing Deferred module, and as I\'m easing into using more of Node.js, I find myself wanting something exactly like it in m

7条回答
  •  鱼传尺愫
    2020-12-05 14:23

    If you want the same API, there's nothing stopping you from using jQuery itself under Node. Just npm install jquery, then:

    var $ = require('jquery');
    var deferred = $.Deferred();
    

提交回复
热议问题