node-promise-es6
ES6 promise adapters for the Node.js API for use with ES7 async/await.
Installing
node-promise-es6
is available as an
npm package.
Usage
Wrapped APIs
fs
; { console;}
child_process
; { const stdout stderr = await childProcess; console;}
Utilities
promisify
; { ;} { const promiseFn = ; const x y = await ; console;}
A helper for wrapping Node.js-style callback-taking functions (error object as first argument) in a Promise API.
Development
Getting Started
The application requires the following external dependencies:
- Node.js
The rest of the dependencies are handled through:
npm install
Run tests with:
npm test