Open kahluagenie opened 8 years ago
Seconded. I'm currently wrapping all callback functions in my code to give promise functionality!
I have created a fork which supports Promises. You can find it here.
Unless you guys think otherwise, I don't think I will create a pull request for it because the changes remove callback functions, making it not backwards compatible.
@matthewnitschke: awesome, can you add it to npm so others can use it easily? can be under spotify-node-applescript-promise
name.
@lucasbento just added it. Can be downloaded via
npm install spotify-node-applescript-promise
Currently this easily works with
Bluebird.promisifyAll(require('spotify-node-applescript'))
, but I think it would be fantastic if the library supported promises out of the box.