{"id":13396598,"url":"https://github.com/then/is-promise","last_synced_at":"2025-05-15T07:05:16.677Z","repository":{"id":6070498,"uuid":"7296439","full_name":"then/is-promise","owner":"then","description":"Test whether an object looks like a promises-a+ promise","archived":false,"fork":false,"pushed_at":"2023-04-29T17:31:49.000Z","size":26,"stargazers_count":280,"open_issues_count":2,"forks_count":31,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-22T02:01:51.631Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/then.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["ForbesLindesay"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":"npm/is-promise","community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2012-12-23T16:01:29.000Z","updated_at":"2025-01-09T16:04:51.000Z","dependencies_parsed_at":"2024-06-18T12:19:43.078Z","dependency_job_id":"f2b8a572-038e-4d27-aa7f-683a36845b04","html_url":"https://github.com/then/is-promise","commit_stats":{"total_commits":36,"total_committers":13,"mean_commits":2.769230769230769,"dds":0.4444444444444444,"last_synced_commit":"ec9bd8a3f576324a1343069a2d6c2fa35a623939"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/then%2Fis-promise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/then%2Fis-promise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/then%2Fis-promise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/then%2Fis-promise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/then","download_url":"https://codeload.github.com/then/is-promise/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250685658,"owners_count":21471013,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T18:00:57.731Z","updated_at":"2025-05-15T07:05:11.666Z","avatar_url":"https://github.com/then.png","language":"JavaScript","funding_links":["https://github.com/sponsors/ForbesLindesay","https://tidelift.com/funding/github/npm/is-promise"],"categories":["Promise","Repository","Convenience Utilities","Modules","模块"],"sub_categories":["Check/Detect","Others","Promise"],"readme":"\u003ca href=\"https://promisesaplus.com/\"\u003e\u003cimg src=\"https://promisesaplus.com/assets/logo-small.png\" align=\"right\" /\u003e\u003c/a\u003e\n\n# is-promise\n\n  Test whether an object looks like a promises-a+ promise\n\n [![Build Status](https://img.shields.io/circleci/build/github/then/is-promise/master?style=for-the-badge)](https://app.circleci.com/pipelines/github/then/is-promise)\n [![NPM version](https://img.shields.io/npm/v/is-promise.svg?style=for-the-badge)](https://www.npmjs.org/package/is-promise)\n\n\n\n## Installation\n\n    $ npm install is-promise\n\nYou can also use it client side via npm.\n\n## API\n\n```typescript\nimport isPromise from 'is-promise';\n\nisPromise(Promise.resolve());//=\u003etrue\nisPromise({then:function () {...}});//=\u003etrue\nisPromise(null);//=\u003efalse\nisPromise({});//=\u003efalse\nisPromise({then: true})//=\u003efalse\n```\n\n## License\n\n  MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthen%2Fis-promise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthen%2Fis-promise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthen%2Fis-promise/lists"}