prominence
Call a callback-based function as ES6 Promise
Installation
NPM
npm install prominence
API
prominenct(context: object): Prominence
prominence(context: object, methodName: string, [ args: any[] ]): Promise<any>
Examples
ES6 Promise
;; // use Prominence proxy; // not use a proxy;
ES7 Async/Await
;; // use Prominence Proxyasync { let text = await ; console;}; // not use a proxyasync { let text = await ; console;};
Contributing
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D