Promise Me

Promise Me helps you convert your Javascript code from using callbacks to using promises, for example through Q, RSVP.js or when.js.

It parses your code and then manipulates the AST to transform the callbacks into calls to then(), including a rejection handler if you handle the original callback error. Think of it as a slightly smarter find-and-replace. It will probably break your code and require you to fix it.


Loading promise-me, esprima, estraverse, escodegen...