nexthenify
Useful for developing asynchronous express middleware
Turn this:
;
into this:
// bar expects a callback where the last argument is a `done` or `next` callback;
Install
npm i --save nexthenify
Examples
Basic usage
const nexthenify = ; { return { if value === 1 ; else ; };} ;
Optionally pass a context to use:
;
Tests
Requires gulp: npm i -g gulp
npm test