▲ Make a JavaScript function support both promise and callback styles at github.com▼2 up and 0 down, posted by sonny 3312 days ago 3 comments
sonny 3312 days ago. link parent 1 point ▲ ▼Also, while it can be used to "promisify" a callback style function, it is more aimed at library authors.