API Reference

p-reflect

getPromise(), getPromiseThatRejects(), getPromise() ]; console.log(results); / [ { status: 'fulfilled', value: 'πŸ¦„' isFulfilled: true, isRejected: false },…

Official Documentation β†—
CompatibilityThis documentation covers version v3.0.0. Check the official docs for the latest API surface.

Installation

npmnpm install p-reflect
pnpmpnpm add p-reflect

Methods

Overview

getPromise(), getPromiseThatRejects(), getPromise() ]; console.log(results); / [ { status: β€˜fulfilled’, value: β€˜πŸ¦„β€™ isFulfilled: true, isRejected: false }, { status: β€˜rejected’, reason: [Error: πŸ‘Ή] isFulfilled: false, isRejected: true }, {

API reference status

This page lists only entry points that appear verbatim in the official README examples: getPromise, getPromiseThatRejects, all. Parameter and return types are not given by the official README, so signatures are marked unverified.

Verification notes

FAQ

What does p-reflect do?
getPromise(), getPromiseThatRejects(), getPromise() ]; console.log(results); / [ { status: 'fulfilled', value: 'πŸ¦„' isFulfilled: true, isRejected: false }, { status: 'rejected', reason: [Error: πŸ‘Ή] is
How do I install p-reflect?
Run `npm install p-reflect`.
Where can I verify the API details?
Official repository/documentation: https://github.com/sindresorhus/p-reflect. Checked on 2026-11-04; signatures and return values not stated in the official README are marked unverified.