is-promise
npmv4.0.0Test 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.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
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.
import isPromise from 'is-promise';
isPromise(Promise.resolve());//=>true
isPromise({then:function () {...}});//=>true
isPromise(null);//=>false
isPromise({});//=>false
isPromise({then: true})//=>falseUsed by
Popular packages that depend on is-promise.
Relationship graph
Dependencies (left) and dependents (right) of is-promise.
Frequently installed together
Node.js final http responder
Deprecate all the things
Lightweight debugging utility for Node.js and the browser
parse a url with memoization
Express style path to RegExp utility
Release history
No releases in the last two years, typically about 208 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 4.0.0latest | 6 years ago | 2.9 KB | MIT |
| 3.0.0 | 6 years ago | 2.9 KB | MIT |
| 2.2.2 | 6 years ago | 2.7 KB | MIT |
| 2.2.1 | 6 years ago | 2.8 KB | MIT |
| 2.2.0 | 6 years ago | 2.6 KB | MIT |
| 2.1.0 | 11 years ago | — | MIT |
| 2.0.0 | 11 years ago | — | MIT |
| 1.0.1 | 12 years ago | — | MIT |
| 1.0.0 | 13 years ago | — | MIT |
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.