queryable-promise
v1.0.0
Published
queryable promise
Downloads
140
Readme
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.