Do promises and asynchronous code give you nightmares? We're here to help!
Updates Nightmare's evaluate
with support for promises, Node.js style
callbacks, generators and more.
Install
$ npm install joseph
Usage
// Patch Nightmarevar Nightmare = // ...orvar Nightmare = ; { var nightmare = ; // Go somewhere nightmare // Return promises var res = nightmare; console; // Generators for control-flow var res = nightmare; console; // Callbacks are okay too! var res = nightmare; console; nightmare;} // Run with vorun { if err console;};