polygoat icon indicating copy to clipboard operation
polygoat copied to clipboard

Make JavaScript functions that support both promise and callback styles.

Results 4 polygoat issues
Sort by recently updated
recently updated
newest added

Bumps [lodash](https://github.com/lodash/lodash) from 4.17.19 to 4.17.21. Commits f299b52 Bump to v4.17.21 c4847eb Improve performance of toNumber, trim and trimEnd on large input strings 3469357 Prevent command injection through _.template's variable...

dependencies

I see ~~3~~ 2 different approaches # callback Pros - Consistency between promise and callback styles - Make it easier to handles all errors, no need for try catch, protect...

let the consumer throws but catch so that a polygoat function never throws and calls the callback with the exception as first argument instead related discussion https://github.com/sonnyp/polygoat/issues/9 maybe a new...

just an idea, maybe a new module? # goatifyAll example ``` javascript var pg = require('polygoat') var fs = pg.goatifyAll(require('fs')) // you can now use fs methods as promises fs.readdir('/').then(function...