modernize node.js to current ECMAScript standards
Modernize node.js to current ECMAScript specifications! node.js will not update their API to ES6+ for a while. This library is a wrapper for various aspects of node.js' API.
mdz as a dependency and install it.
npm i mdz
Then prefix the relevant
var fs =fs
var co =var fs =
Many node methods are converted into promises. Any properties that are deprecated or aren't asynchronous will simply be proxied. The modules wrapped are:
var exec = exec
If you're using node v0.11.13+,
the native v8
Promise is used.
Otherwise, you must install bluebird yourself.
If you want to force this library to use bluebird, set the
MDZ_BLUEBIRD environmental variable:
You may want to always use bluebird in production until v8 fixes and optimizes its
Sure. Open an issue.