1.0.3 • Published 2 years ago
@raesch/ext-promise v1.0.3
README
Extending ES6 Promise with external resolve and reject capabilities
Installation
- npm install @raesch/ext-promise
How to use
const ExtPromise = require("@raesch/ext-promise");
const p = new ExtPromise();
...
// somewhere in an async function:
const result = await p;
...
// somewhere in a callback or event handler:
p.resolve("OK");
// OR
p.reject("ERROR");
Build process
- download project files from repository
- cd into the project directory
- execute npm run build