We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It would be useful if this library supported promises.
The text was updated successfully, but these errors were encountered:
@Richienb just wrap it:
const readImage = require ("readimage") const read = buffer => new Promise ((resolve, reject) => { readImage (buffer, (err, image) => { if (err) reject (err) resolve (image) }) }
👆 Now readimage support promises.
Sorry, something went wrong.
Not looking for a quick workaround.
Personally, I would hate Promises as the only API for readimage since I loath error handling with nested Promises.
readimage
But I already created a fork, so my opinion is not important.
No branches or pull requests
It would be useful if this library supported promises.
The text was updated successfully, but these errors were encountered: