queryable-promise

1.0.0 • Public • Published

queryable-promise

A utility library for inspecting promises during development.

Installation

npm i queryable-promise

Usage

const queryable = require('queryable-promise');
 
const val = queryable(superFunPromiseFunction(val));
await val;
 
console.log(val.isResolved()); // `true`
console.log(val.val()); // whatever the resolved value is.

Readme

Keywords

Package Sidebar

Install

npm i queryable-promise

Weekly Downloads

51

Version

1.0.0

License

MIT

Unpacked Size

5.81 kB

Total Files

9

Last publish

Collaborators

  • ttacon