{"_id":"is-promise","_rev":"11195","name":"is-promise","description":"Test whether an object looks like a promises-a+ promise","dist-tags":{"latest":"4.0.0"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"then-bot","email":"forbes.lindesay+then-bot@googlemail.com"}],"time":{"modified":"2021-06-03T09:57:56.000Z","created":"2012-12-23T16:25:41.263Z","4.0.0":"2020-04-27T15:34:23.345Z","3.0.0":"2020-04-26T13:39:10.847Z","2.2.2":"2020-04-25T18:08:06.121Z","2.2.1":"2020-04-25T17:55:21.062Z","2.2.0":"2020-04-25T15:03:22.986Z","2.1.0":"2015-09-06T18:06:36.412Z","2.0.0":"2015-02-10T10:06:19.012Z","1.0.1":"2014-05-20T13:38:55.043Z","1.0.0":"2012-12-23T16:25:41.263Z"},"users":{"medikoo":true,"j.su":true,"nickeltobias":true,"rocket0191":true,"71emj1":true,"rioli":true},"author":{"name":"ForbesLindesay"},"repository":{"type":"git","url":"git+https://github.com/then/is-promise.git"},"versions":{"4.0.0":{"name":"is-promise","version":"4.0.0","description":"Test whether an object looks like a promises-a+ promise","main":"./index.js","scripts":{"test":"node test"},"exports":{".":[{"import":"./index.mjs","require":"./index.js","default":"./index.js"},"./index.js"]},"repository":{"type":"git","url":"git+https://github.com/then/is-promise.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","gitHead":"5a240f639ff89f9cb938bbaf3aef59f15ddd0117","bugs":{"url":"https://github.com/then/is-promise/issues"},"homepage":"https://github.com/then/is-promise#readme","_id":"is-promise@4.0.0","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"shasum":"42ff9f84206c1991d26debf520dd5c01042dd2f3","size":1620,"noattachment":false,"key":"/is-promise/-/is-promise-4.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-promise/download/is-promise-4.0.0.tgz"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"then-bot","email":"forbes.lindesay+then-bot@googlemail.com"}],"_npmUser":{"name":"then-bot","email":"forbes.lindesay+then-bot@googlemail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-promise_4.0.0_1588001663226_0.004173280577370431"},"_hasShrinkwrap":false,"publish_time":1588001663345,"_cnpm_publish_time":1588001663345},"3.0.0":{"name":"is-promise","version":"3.0.0","description":"Test whether an object looks like a promises-a+ promise","main":"./index.js","scripts":{"test":"node test"},"exports":{".":[{"import":"./index.mjs","require":"./index.js","default":"./index.js"},"./index.js"]},"repository":{"type":"git","url":"git+https://github.com/then/is-promise.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","gitHead":"1fc71a47126ab90c6c09c978ce5f09323504b091","bugs":{"url":"https://github.com/then/is-promise/issues"},"homepage":"https://github.com/then/is-promise#readme","_id":"is-promise@3.0.0","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"shasum":"1f88031af842d9203dc1777cba40411e848f9beb","size":1616,"noattachment":false,"key":"/is-promise/-/is-promise-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-promise/download/is-promise-3.0.0.tgz"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"then-bot","email":"forbes.lindesay+then-bot@googlemail.com"}],"_npmUser":{"name":"then-bot","email":"forbes.lindesay+then-bot@googlemail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-promise_3.0.0_1587908350738_0.05295193614336613"},"_hasShrinkwrap":false,"publish_time":1587908350847,"_cnpm_publish_time":1587908350847},"2.2.2":{"name":"is-promise","version":"2.2.2","description":"Test whether an object looks like a promises-a+ promise","main":"./index.js","scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"git+https://github.com/then/is-promise.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","devDependencies":{"better-assert":"^1.0.2","mocha":"~1.7.4"},"gitHead":"68d3d6871806162772b33e9629908ded6c8bf0b1","bugs":{"url":"https://github.com/then/is-promise/issues"},"homepage":"https://github.com/then/is-promise#readme","_id":"is-promise@2.2.2","_nodeVersion":"10.16.3","_npmVersion":"6.9.0","dist":{"shasum":"39ab959ccbf9a774cf079f7b40c7a26f763135f1","size":1549,"noattachment":false,"key":"/is-promise/-/is-promise-2.2.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-promise/download/is-promise-2.2.2.tgz"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"then-bot","email":"forbes.lindesay+then-bot@googlemail.com"}],"_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-promise_2.2.2_1587838086005_0.2998250461878085"},"_hasShrinkwrap":false,"publish_time":1587838086121,"_cnpm_publish_time":1587838086121},"2.2.1":{"name":"is-promise","version":"2.2.1","description":"Test whether an object looks like a promises-a+ promise","main":"./index.js","exports":{"import":"./index.mjs","require":"./index.js"},"scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"git+https://github.com/then/is-promise.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","devDependencies":{"better-assert":"^1.0.2","mocha":"~1.7.4"},"gitHead":"0b69f52ee73c9f6ad4480f02c9bccb14d2038656","bugs":{"url":"https://github.com/then/is-promise/issues"},"homepage":"https://github.com/then/is-promise#readme","_id":"is-promise@2.2.1","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"shasum":"0d624554bc3bb09d4896b3802ec9a093731b4442","size":1569,"noattachment":false,"key":"/is-promise/-/is-promise-2.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-promise/download/is-promise-2.2.1.tgz"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"then-bot","email":"forbes.lindesay+then-bot@googlemail.com"}],"_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-promise_2.2.1_1587837320858_0.5308716980788573"},"_hasShrinkwrap":false,"publish_time":1587837321062,"_cnpm_publish_time":1587837321062},"2.2.0":{"name":"is-promise","version":"2.2.0","description":"Test whether an object looks like a promises-a+ promise","main":"index.js","type":"module","exports":{"import":"index.mjs","require":"index.js"},"scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"git+https://github.com/then/is-promise.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","devDependencies":{"better-assert":"^1.0.2","mocha":"^7.1.1"},"gitHead":"78eec0c382cb94dd8332ed475a865d7ce2ebad2e","bugs":{"url":"https://github.com/then/is-promise/issues"},"homepage":"https://github.com/then/is-promise#readme","_id":"is-promise@2.2.0","_nodeVersion":"12.14.1","_npmVersion":"6.13.4","dist":{"shasum":"3ebfc546cee7064c314686279cc9df7bc2724715","size":1533,"noattachment":false,"key":"/is-promise/-/is-promise-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-promise/download/is-promise-2.2.0.tgz"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"then-bot","email":"forbes.lindesay+then-bot@googlemail.com"}],"_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/is-promise_2.2.0_1587827002797_0.20873413054169054"},"_hasShrinkwrap":false,"publish_time":1587827002986,"_cnpm_publish_time":1587827002986},"2.1.0":{"name":"is-promise","version":"2.1.0","description":"Test whether an object looks like a promises-a+ promise","main":"index.js","scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"https://github.com/then/is-promise.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","devDependencies":{"better-assert":"~0.1.0","mocha":"~1.7.4"},"gitHead":"056f8ac12eed91886ac4f0f7d872a176f6ed698f","bugs":{"url":"https://github.com/then/is-promise/issues"},"homepage":"https://github.com/then/is-promise","_id":"is-promise@2.1.0","_shasum":"79a2a9ece7f096e80f36d2b2f3bc16c1ff4bf3fa","_from":".","_npmVersion":"2.7.1","_nodeVersion":"1.6.2","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"then-bot","email":"forbes.lindesay+then-bot@googlemail.com"}],"dist":{"shasum":"79a2a9ece7f096e80f36d2b2f3bc16c1ff4bf3fa","size":2283,"noattachment":false,"key":"/is-promise/-/is-promise-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-promise/download/is-promise-2.1.0.tgz"},"directories":{},"publish_time":1441562796412,"_cnpm_publish_time":1441562796412,"_hasShrinkwrap":false},"2.0.0":{"name":"is-promise","version":"2.0.0","description":"Test whether an object looks like a promises-a+ promise","main":"index.js","scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"https://github.com/then/is-promise.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","devDependencies":{"better-assert":"~0.1.0","mocha":"~1.7.4"},"gitHead":"a2172115022e7658573428d9ddf9b094f9c6d1b5","bugs":{"url":"https://github.com/then/is-promise/issues"},"homepage":"https://github.com/then/is-promise","_id":"is-promise@2.0.0","_shasum":"058b6404ba57c4df03c92ed987c000bda58753a6","_from":".","_npmVersion":"2.4.1","_nodeVersion":"1.1.0","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"then-bot","email":"forbes.lindesay+then-bot@googlemail.com"}],"dist":{"shasum":"058b6404ba57c4df03c92ed987c000bda58753a6","size":1635,"noattachment":false,"key":"/is-promise/-/is-promise-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-promise/download/is-promise-2.0.0.tgz"},"directories":{},"publish_time":1423562779012,"_cnpm_publish_time":1423562779012,"_hasShrinkwrap":false},"1.0.1":{"name":"is-promise","version":"1.0.1","description":"Test whether an object looks like a promises-a+ promise","main":"index.js","scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"https://github.com/then/is-promise.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","devDependencies":{"better-assert":"~0.1.0","mocha":"~1.7.4"},"bugs":{"url":"https://github.com/then/is-promise/issues"},"homepage":"https://github.com/then/is-promise","_id":"is-promise@1.0.1","dist":{"shasum":"31573761c057e33c2e91aab9e96da08cefbe76e5","size":1619,"noattachment":false,"key":"/is-promise/-/is-promise-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-promise/download/is-promise-1.0.1.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"forbeslindesay","email":"forbes@lindeay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"then-bot","email":"forbes.lindesay+then-bot@googlemail.com"}],"directories":{},"publish_time":1400593135043,"_cnpm_publish_time":1400593135043,"_hasShrinkwrap":false},"1.0.0":{"name":"is-promise","version":"1.0.0","description":"Test whether an object looks like a promises-a+ promise","main":"index.js","scripts":{"test":"mocha -R spec"},"repository":{"type":"git","url":"https://github.com/then/is-promise.git"},"author":{"name":"ForbesLindesay"},"license":"MIT","devDependencies":{"better-assert":"~0.1.0","mocha":"~1.7.4"},"_id":"is-promise@1.0.0","dist":{"shasum":"b998d17551f16f69f7bd4828f58f018cc81e064f","size":701,"noattachment":false,"key":"/is-promise/-/is-promise-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/is-promise/download/is-promise-1.0.0.tgz"},"_npmVersion":"1.1.59","_npmUser":{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},"maintainers":[{"name":"forbeslindesay","email":"forbes@lindesay.co.uk"},{"name":"then-bot","email":"forbes.lindesay+then-bot@googlemail.com"}],"directories":{},"publish_time":1356279941263,"_cnpm_publish_time":1356279941263,"_hasShrinkwrap":false}},"readme":"<a href=\"https://promisesaplus.com/\"><img src=\"https://promisesaplus.com/assets/logo-small.png\" align=\"right\" /></a>\n\n# is-promise\n\n  Test whether an object looks like a promises-a+ promise\n\n [![Build Status](https://img.shields.io/travis/then/is-promise/master.svg)](https://travis-ci.org/then/is-promise)\n [![Dependency Status](https://img.shields.io/david/then/is-promise.svg)](https://david-dm.org/then/is-promise)\n [![NPM version](https://img.shields.io/npm/v/is-promise.svg)](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());//=>true\nisPromise({then:function () {...}});//=>true\nisPromise(null);//=>false\nisPromise({});//=>false\nisPromise({then: true})//=>false\n```\n\n## License\n\n  MIT\n","_attachments":{},"homepage":"https://github.com/then/is-promise#readme","bugs":{"url":"https://github.com/then/is-promise/issues"},"license":"MIT"}