JSPM

queryable-promise

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 10
  • Score
    100M100P100Q65701F
  • License MIT

queryable promise

Package Exports

  • queryable-promise

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (queryable-promise) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

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.