</>PackageGraphPackageGraph

is-promise

npmv4.0.0

Test whether an object looks like a promises-a+ promise

Not recommended for new projects

No — is-promise should not be adopted for new projects. Last published 2326 days ago.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • FMaintenance: grade F, Failing.

    Last published 2326 days ago.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 2.9 KB installed.

  • ASupply chain: grade A, Excellent.

    No install scripts, 2 maintainers, and a contained dependency surface.

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding is-promise to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

2.9 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
No constraint declared
Module format
CommonJS only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the is-promise README.

typescriptFull README ↗
import isPromise from 'is-promise';

isPromise(Promise.resolve());//=>true
isPromise({then:function () {...}});//=>true
isPromise(null);//=>false
isPromise({});//=>false
isPromise({then: true})//=>false

Used by

Popular packages that depend on is-promise.

Relationship graph

Dependencies (left) and dependents (right) of is-promise.

routeris-promise
is-promise dependencies dependents

Frequently installed together

Release history

No releases in the last two years, typically about 208 days apart.

Recent versions of is-promise
VersionPublishedSizeLicense
4.0.0latest6 years ago2.9 KBMIT
3.0.06 years ago2.9 KBMIT
2.2.26 years ago2.7 KBMIT
2.2.16 years ago2.8 KBMIT
2.2.06 years ago2.6 KBMIT
2.1.011 years agoMIT
2.0.011 years agoMIT
1.0.112 years agoMIT
1.0.013 years agoMIT

Overview

is-promise is an npm package that test whether an object looks like a promises-a+ promise. It has 1 known dependents in the graph. The latest version is 4.0.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need test whether an object looks like a promises-a+ promise and value a focused solution.

When not to use it

Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Clear open-source license (MIT).
  • Zero runtime dependencies — minimal footprint.

Cons

  • No bundled TypeScript types (may require a separate @types package).

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Frequently asked questions

Should I use is-promise?

No — is-promise should not be adopted for new projects. Last published 2326 days ago.

How do I install is-promise?

Run `npm install is-promise` to add is-promise to your npm project.

What license is is-promise released under?

is-promise is distributed under the MIT license.

How popular is is-promise?

npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on is-promise.

Is is-promise still maintained?

The most recent release of is-promise (v4.0.0) was published 6 years ago.

Does is-promise run install scripts?

No. is-promise does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.