Closed knownasilya closed 8 years ago
+1
I decided to leave this out, since it's simple enough to do. If the API was more complex with multiple methods, then maybe it would be worth it.
We should re-open this @knownasilya since Promises are standard now, and frameworks such as Koa use it out of the box with async/await.
In the meanwhile if anyone wants to do this:
const { promisify } = require('util');
const json2csv = require('json2csv');
const json2csvAsync = promisify(json2csv);
@niftylettuce super solution!
This library is sync, no promises necessary.
Might be worthwhile, but users can always do