{"_id":"async-mqtt","_rev":"4096313","name":"async-mqtt","description":"Promise wrapper over MQTT.js","dist-tags":{"latest":"2.6.3"},"maintainers":[{"name":"matteo.collina","email":""},{"name":"rangermauve","email":""},{"name":"tabrizian","email":""}],"time":{"modified":"2025-12-08T22:52:18.000Z","created":"2017-02-26T22:01:05.258Z","2.6.3":"2022-09-06T15:48:51.077Z","2.6.2":"2022-01-23T17:50:12.794Z","2.6.1":"2020-06-29T16:24:54.157Z","2.6.0":"2020-05-24T20:12:25.849Z","2.5.0":"2020-02-03T17:38:00.557Z","2.4.2":"2019-08-19T14:50:31.795Z","2.4.1":"2019-08-13T18:59:24.804Z","2.4.0":"2019-08-07T21:17:06.712Z","2.3.0":"2019-05-31T15:40:35.013Z","2.2.1":"2019-03-25T14:06:51.404Z","2.2.0":"2019-02-25T15:21:38.080Z","2.0.0":"2018-09-14T14:45:57.155Z","1.0.1":"2017-03-10T20:53:09.729Z","1.0.0":"2017-02-26T22:01:05.258Z"},"users":{},"author":{"name":"rangermauve"},"repository":{"type":"git","url":"git+https://github.com/mqttjs/async-mqtt.git"},"versions":{"2.6.3":{"name":"async-mqtt","version":"2.6.3","description":"Promise wrapper over MQTT.js","main":"index.js","types":"index.d.ts","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/mqttjs/async-mqtt.git"},"keywords":["mqtt","promise","async","publish","subscribe"],"author":{"name":"rangermauve"},"license":"MIT","bugs":{"url":"https://github.com/mqttjs/async-mqtt/issues"},"homepage":"https://github.com/mqttjs/async-mqtt#readme","dependencies":{"mqtt":"^4.3.7"},"devDependencies":{"@types/node":"^14.0.5","eslint":"^7.32.0","mqtt-connection":"^4.0.0","tape":"^5.0.0"},"gitHead":"48f4e3d49b01119ac8359736695a5bc9ddc0544d","_id":"async-mqtt@2.6.3","_nodeVersion":"18.4.0","_npmVersion":"8.12.1","dist":{"shasum":"257628900a9a25c61a552fb49f9ae368069b2f28","size":4792,"noattachment":false,"key":"/async-mqtt/-/async-mqtt-2.6.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-mqtt/download/async-mqtt-2.6.3.tgz"},"_npmUser":{"name":"rangermauve","email":"rangermauve@hotmail.com"},"directories":{},"maintainers":[{"name":"matteo.collina","email":""},{"name":"rangermauve","email":""},{"name":"tabrizian","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/async-mqtt_2.6.3_1662479330916_0.7225931902613152"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-09-06T15:58:21.561Z","publish_time":1662479331077,"_cnpm_publish_time":1662479331077},"2.6.2":{"name":"async-mqtt","version":"2.6.2","description":"Promise wrapper over MQTT.js","main":"index.js","types":"index.d.ts","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/mqttjs/async-mqtt.git"},"keywords":["mqtt","promise","async","publish","subscribe"],"author":{"name":"rangermauve"},"license":"MIT","bugs":{"url":"https://github.com/mqttjs/async-mqtt/issues"},"homepage":"https://github.com/mqttjs/async-mqtt#readme","dependencies":{"mqtt":"^4.1.0"},"devDependencies":{"@types/node":"^14.0.5","eslint":"^7.1.0","mqtt-connection":"^4.0.0","tape":"^5.0.0"},"gitHead":"d456f8540873611d43e3b46916996a06363e0573","_id":"async-mqtt@2.6.2","_nodeVersion":"16.13.1","_npmVersion":"8.1.2","dist":{"shasum":"e4097690f4cb6b5cdbf95209b454acdc90904343","size":4787,"noattachment":false,"key":"/async-mqtt/-/async-mqtt-2.6.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-mqtt/download/async-mqtt-2.6.2.tgz"},"_npmUser":{"name":"rangermauve","email":"rangermauve@hotmail.com"},"directories":{},"maintainers":[{"name":"matteo.collina","email":""},{"name":"rangermauve","email":""},{"name":"tabrizian","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/async-mqtt_2.6.2_1642960212662_0.29537634125380796"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-01-23T17:50:19.491Z","publish_time":1642960212794,"_cnpm_publish_time":1642960212794},"2.6.1":{"name":"async-mqtt","version":"2.6.1","description":"Promise wrapper over MQTT.js","main":"index.js","types":"index.d.ts","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/mqttjs/async-mqtt.git"},"keywords":["mqtt","promise","async","publish","subscribe"],"author":{"name":"rangermauve"},"license":"MIT","bugs":{"url":"https://github.com/mqttjs/async-mqtt/issues"},"homepage":"https://github.com/mqttjs/async-mqtt#readme","dependencies":{"mqtt":"^4.1.0"},"devDependencies":{"@types/node":"^14.0.5","eslint":"^7.1.0","mqtt-connection":"^4.0.0","tape":"^5.0.0"},"gitHead":"6597b18142010797ddeba4f9b710bbad3fe5a074","_id":"async-mqtt@2.6.1","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"shasum":"7cca37b0c766e00d7b0b33c9eb236e216ed06248","size":4849,"noattachment":false,"key":"/async-mqtt/-/async-mqtt-2.6.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-mqtt/download/async-mqtt-2.6.1.tgz"},"maintainers":[{"name":"matteo.collina","email":""},{"name":"rangermauve","email":""},{"name":"tabrizian","email":""}],"_npmUser":{"name":"rangermauve","email":"rangermauve@hotmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/async-mqtt_2.6.1_1593447894053_0.34200916076980725"},"_hasShrinkwrap":false,"publish_time":1593447894157,"_cnpm_publish_time":1593447894157,"_cnpmcore_publish_time":"2021-12-16T19:18:49.682Z"},"2.6.0":{"name":"async-mqtt","version":"2.6.0","description":"Promise wrapper over MQTT.js","main":"index.js","types":"index.d.ts","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/mqttjs/async-mqtt.git"},"keywords":["mqtt","promise","async","publish","subscribe"],"author":{"name":"rangermauve"},"license":"MIT","bugs":{"url":"https://github.com/mqttjs/async-mqtt/issues"},"homepage":"https://github.com/mqttjs/async-mqtt#readme","dependencies":{"mqtt":"^4.1.0"},"devDependencies":{"@types/node":"^14.0.5","eslint":"^7.1.0","mqtt-connection":"^4.0.0","tape":"^5.0.0"},"gitHead":"86659ac89d1d549f71f0dd4152241c5f801ec06e","_id":"async-mqtt@2.6.0","_nodeVersion":"12.16.2","_npmVersion":"6.14.4","dist":{"shasum":"96fde8bbce0ec3b10c0a537847e402f6ba685d23","size":4850,"noattachment":false,"key":"/async-mqtt/-/async-mqtt-2.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-mqtt/download/async-mqtt-2.6.0.tgz"},"maintainers":[{"name":"matteo.collina","email":""},{"name":"rangermauve","email":""},{"name":"tabrizian","email":""}],"_npmUser":{"name":"rangermauve","email":"rangermauve@hotmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/async-mqtt_2.6.0_1590351145744_0.9542047080508389"},"_hasShrinkwrap":false,"publish_time":1590351145849,"_cnpm_publish_time":1590351145849,"_cnpmcore_publish_time":"2021-12-16T19:18:49.888Z"},"2.5.0":{"name":"async-mqtt","version":"2.5.0","description":"Promise wrapper over MQTT.js","main":"index.js","types":"index.d.ts","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/mqttjs/async-mqtt.git"},"keywords":["mqtt","promise","async","publish","subscribe"],"author":{"name":"rangermauve"},"license":"MIT","bugs":{"url":"https://github.com/mqttjs/async-mqtt/issues"},"homepage":"https://github.com/mqttjs/async-mqtt#readme","dependencies":{"mqtt":"^2.3.1"},"devDependencies":{"@types/node":"^8.10.21","eslint":"^4.8.0","mqtt-connection":"^3.0.0","tape":"^4.6.3"},"gitHead":"522f8e63c1ad7916bbf661bf150751df53f832e3","_id":"async-mqtt@2.5.0","_nodeVersion":"11.15.0","_npmVersion":"6.9.0","dist":{"shasum":"be0b434b0f7840da0448e3641b3bfe10ad40ffd3","size":4755,"noattachment":false,"key":"/async-mqtt/-/async-mqtt-2.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-mqtt/download/async-mqtt-2.5.0.tgz"},"maintainers":[{"name":"matteo.collina","email":""},{"name":"rangermauve","email":""},{"name":"tabrizian","email":""}],"_npmUser":{"name":"rangermauve","email":"rangermauve@hotmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/async-mqtt_2.5.0_1580751480455_0.1237429599424551"},"_hasShrinkwrap":false,"publish_time":1580751480557,"_cnpm_publish_time":1580751480557,"_cnpmcore_publish_time":"2021-12-16T19:18:50.126Z"},"2.4.2":{"name":"async-mqtt","version":"2.4.2","description":"Promise wrapper over MQTT.js","main":"index.js","types":"index.d.ts","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/mqttjs/async-mqtt.git"},"keywords":["mqtt","promise","async","publish","subscribe"],"author":{"name":"rangermauve"},"license":"MIT","bugs":{"url":"https://github.com/mqttjs/async-mqtt/issues"},"homepage":"https://github.com/mqttjs/async-mqtt#readme","dependencies":{"mqtt":"^2.3.1"},"devDependencies":{"@types/node":"^8.10.21","eslint":"^4.8.0","mqtt-connection":"^3.0.0","tape":"^4.6.3"},"gitHead":"dbc0573a2af928ec633a9530aec452d632a1f64f","_id":"async-mqtt@2.4.2","_nodeVersion":"11.15.0","_npmVersion":"6.9.0","dist":{"shasum":"0462acda332e92a139c889d18b31afc09dc3fd26","size":4697,"noattachment":false,"key":"/async-mqtt/-/async-mqtt-2.4.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-mqtt/download/async-mqtt-2.4.2.tgz"},"maintainers":[{"name":"matteo.collina","email":""},{"name":"rangermauve","email":""},{"name":"tabrizian","email":""}],"_npmUser":{"name":"rangermauve","email":"rangermauve@hotmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/async-mqtt_2.4.2_1566226231677_0.2893889049003331"},"_hasShrinkwrap":false,"publish_time":1566226231795,"_cnpm_publish_time":1566226231795,"_cnpmcore_publish_time":"2021-12-16T19:18:50.313Z"},"2.4.1":{"name":"async-mqtt","version":"2.4.1","description":"Promise wrapper over MQTT.js","main":"index.js","types":"index.d.ts","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/mqttjs/async-mqtt.git"},"keywords":["mqtt","promise","async","publish","subscribe"],"author":{"name":"rangermauve"},"license":"MIT","bugs":{"url":"https://github.com/mqttjs/async-mqtt/issues"},"homepage":"https://github.com/mqttjs/async-mqtt#readme","dependencies":{"mqtt":"^2.3.1"},"devDependencies":{"@types/node":"^8.10.21","eslint":"^4.8.0","mqtt-connection":"^3.0.0","tape":"^4.6.3"},"gitHead":"e668423ffae861947139f33d5644562405eedf9f","_id":"async-mqtt@2.4.1","_nodeVersion":"11.15.0","_npmVersion":"6.9.0","dist":{"shasum":"6b2ff41c4f218a9c27a225af81e050a86e9edbf3","size":4684,"noattachment":false,"key":"/async-mqtt/-/async-mqtt-2.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-mqtt/download/async-mqtt-2.4.1.tgz"},"maintainers":[{"name":"matteo.collina","email":""},{"name":"rangermauve","email":""},{"name":"tabrizian","email":""}],"_npmUser":{"name":"rangermauve","email":"rangermauve@hotmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/async-mqtt_2.4.1_1565722764671_0.2532351945528688"},"_hasShrinkwrap":false,"publish_time":1565722764804,"_cnpm_publish_time":1565722764804,"_cnpmcore_publish_time":"2021-12-16T19:18:50.529Z"},"2.4.0":{"name":"async-mqtt","version":"2.4.0","description":"Promise wrapper over MQTT.js","main":"index.js","types":"index.d.ts","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/mqttjs/async-mqtt.git"},"keywords":["mqtt","promise","async","publish","subscribe"],"author":{"name":"rangermauve"},"license":"MIT","bugs":{"url":"https://github.com/mqttjs/async-mqtt/issues"},"homepage":"https://github.com/mqttjs/async-mqtt#readme","dependencies":{"mqtt":"^2.3.1"},"devDependencies":{"@types/node":"^8.10.21","eslint":"^4.8.0","mqtt-connection":"^3.0.0","tape":"^4.6.3"},"gitHead":"3f58d16a51bd3649ad3001ebffc387a3a2525d3a","_id":"async-mqtt@2.4.0","_nodeVersion":"11.15.0","_npmVersion":"6.9.0","dist":{"shasum":"6cc67ccf2524a83af9dc2c463af0743c09b8f162","size":4684,"noattachment":false,"key":"/async-mqtt/-/async-mqtt-2.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-mqtt/download/async-mqtt-2.4.0.tgz"},"maintainers":[{"name":"matteo.collina","email":""},{"name":"rangermauve","email":""},{"name":"tabrizian","email":""}],"_npmUser":{"name":"rangermauve","email":"rangermauve@hotmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/async-mqtt_2.4.0_1565212626567_0.469430134705177"},"_hasShrinkwrap":false,"publish_time":1565212626712,"_cnpm_publish_time":1565212626712,"_cnpmcore_publish_time":"2021-12-16T19:18:50.731Z"},"2.3.0":{"name":"async-mqtt","version":"2.3.0","description":"Promise wrapper over MQTT.js","main":"index.js","types":"index.d.ts","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/mqttjs/async-mqtt.git"},"keywords":["mqtt","promise","async","publish","subscribe"],"author":{"name":"rangermauve"},"license":"MIT","bugs":{"url":"https://github.com/mqttjs/async-mqtt/issues"},"homepage":"https://github.com/mqttjs/async-mqtt#readme","dependencies":{"mqtt":"^2.3.1"},"devDependencies":{"@types/node":"^8.10.21","eslint":"^4.8.0","mqtt-connection":"^3.0.0","tape":"^4.6.3"},"gitHead":"fcc40b5e08f38c9fcaea79bf8a0f879189428781","_id":"async-mqtt@2.3.0","_npmVersion":"6.5.0","_nodeVersion":"11.9.0","_npmUser":{"name":"rangermauve","email":"rangermauve@hotmail.com"},"dist":{"shasum":"de211b8f7a58a261da51d7c97a95b9332bdffacf","size":4225,"noattachment":false,"key":"/async-mqtt/-/async-mqtt-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-mqtt/download/async-mqtt-2.3.0.tgz"},"maintainers":[{"name":"matteo.collina","email":""},{"name":"rangermauve","email":""},{"name":"tabrizian","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/async-mqtt_2.3.0_1559317234852_0.443308787035684"},"_hasShrinkwrap":false,"publish_time":1559317235013,"_cnpm_publish_time":1559317235013,"_cnpmcore_publish_time":"2021-12-16T19:18:50.988Z"},"2.2.1":{"name":"async-mqtt","version":"2.2.1","description":"Promise wrapper over MQTT.js","main":"index.js","types":"index.d.ts","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/mqttjs/async-mqtt.git"},"keywords":["mqtt","promise","async","publish","subscribe"],"author":{"name":"rangermauve"},"license":"MIT","bugs":{"url":"https://github.com/mqttjs/async-mqtt/issues"},"homepage":"https://github.com/mqttjs/async-mqtt#readme","dependencies":{"mqtt":"^2.3.1"},"devDependencies":{"@types/node":"^8.10.21","eslint":"^4.8.0","mqtt-connection":"^3.0.0","tape":"^4.6.3"},"gitHead":"199609da341b04694945034340595f019b0316e5","_id":"async-mqtt@2.2.1","_npmVersion":"6.5.0","_nodeVersion":"11.9.0","_npmUser":{"name":"rangermauve","email":"rangermauve@hotmail.com"},"dist":{"shasum":"51c39d2b67c1b2c6b90800c5ed4fb47e7ddcc774","size":4140,"noattachment":false,"key":"/async-mqtt/-/async-mqtt-2.2.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-mqtt/download/async-mqtt-2.2.1.tgz"},"maintainers":[{"name":"matteo.collina","email":""},{"name":"rangermauve","email":""},{"name":"tabrizian","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/async-mqtt_2.2.1_1553522811284_0.560241456340383"},"_hasShrinkwrap":false,"publish_time":1553522811404,"_cnpm_publish_time":1553522811404,"_cnpmcore_publish_time":"2021-12-16T19:18:51.313Z"},"2.2.0":{"name":"async-mqtt","version":"2.2.0","description":"Promise wrapper over MQTT.js","main":"index.js","types":"index.d.ts","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/mqttjs/async-mqtt.git"},"keywords":["mqtt","promise","async","publish","subscribe"],"author":{"name":"rangermauve"},"license":"MIT","bugs":{"url":"https://github.com/mqttjs/async-mqtt/issues"},"homepage":"https://github.com/mqttjs/async-mqtt#readme","dependencies":{"mqtt":"^2.3.1"},"devDependencies":{"@types/node":"^8.10.21","eslint":"^4.8.0","mqtt-connection":"^3.0.0","tape":"^4.6.3"},"gitHead":"8543bea29aeae610a8e29c2ad48a05fbf97ecb20","_id":"async-mqtt@2.2.0","_npmVersion":"6.5.0","_nodeVersion":"11.9.0","_npmUser":{"name":"rangermauve","email":"rangermauve@hotmail.com"},"dist":{"shasum":"0fc46654d6e56d8bc303d9a3da68c04c48b25d85","size":4096,"noattachment":false,"key":"/async-mqtt/-/async-mqtt-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-mqtt/download/async-mqtt-2.2.0.tgz"},"maintainers":[{"name":"matteo.collina","email":""},{"name":"rangermauve","email":""},{"name":"tabrizian","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/async-mqtt_2.2.0_1551108097940_0.7107963584788679"},"_hasShrinkwrap":false,"publish_time":1551108098080,"_cnpm_publish_time":1551108098080,"_cnpmcore_publish_time":"2021-12-16T19:18:51.565Z"},"2.0.0":{"name":"async-mqtt","version":"2.0.0","description":"Promise wrapper over MQTT.js","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/mqttjs/async-mqtt.git"},"keywords":["mqtt","promise","async","publish","subscribe"],"author":{"name":"rangermauve"},"license":"MIT","bugs":{"url":"https://github.com/mqttjs/async-mqtt/issues"},"homepage":"https://github.com/mqttjs/async-mqtt#readme","dependencies":{"in-array":"^0.1.2","mqtt":"^2.3.1"},"devDependencies":{"eslint":"^4.8.0","mqtt-connection":"^3.0.0","tape":"^4.6.3"},"gitHead":"98cb2e179f1e1a5c5d0f7369899c5053a7573bd7","_id":"async-mqtt@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.9.0","_npmUser":{"name":"rangermauve","email":"rangermauve@hotmail.com"},"maintainers":[{"name":"matteo.collina","email":""},{"name":"rangermauve","email":""},{"name":"tabrizian","email":""}],"dist":{"shasum":"82c3b494fc890f64fe70b566b7180e01d8a13cc2","size":3738,"noattachment":false,"key":"/async-mqtt/-/async-mqtt-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-mqtt/download/async-mqtt-2.0.0.tgz"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/async-mqtt_2.0.0_1536936357019_0.049032126499766626"},"_hasShrinkwrap":false,"publish_time":1536936357155,"_cnpm_publish_time":1536936357155,"_cnpmcore_publish_time":"2021-12-16T19:18:51.754Z"},"1.0.1":{"name":"async-mqtt","version":"1.0.1","description":"Promise wrapper over MQTT.js","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/mqttjs/async-mqtt.git"},"keywords":["mqtt","promise","async","publish","subscribe"],"author":{"name":"rangermauve"},"license":"MIT","bugs":{"url":"https://github.com/mqttjs/async-mqtt/issues"},"homepage":"https://github.com/mqttjs/async-mqtt#readme","dependencies":{"in-array":"^0.1.2","mqtt":"^2.3.1"},"devDependencies":{"mqtt-connection":"^3.0.0","tape":"^4.6.3"},"gitHead":"3346d92e32c6820a847346f5a4a2cca7097b8e97","_id":"async-mqtt@1.0.1","_shasum":"b199348776e20009dd8af803c1347a3069cd8c58","_from":".","_npmVersion":"3.8.7","_nodeVersion":"6.9.1","_npmUser":{"name":"rangermauve","email":"rangermauve@hotmail.com"},"maintainers":[{"name":"matteo.collina","email":""},{"name":"rangermauve","email":""},{"name":"tabrizian","email":""}],"dist":{"shasum":"b199348776e20009dd8af803c1347a3069cd8c58","size":3495,"noattachment":false,"key":"/async-mqtt/-/async-mqtt-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-mqtt/download/async-mqtt-1.0.1.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/async-mqtt-1.0.1.tgz_1489179189478_0.1850766409188509"},"directories":{},"publish_time":1489179189729,"_hasShrinkwrap":false,"_cnpm_publish_time":1489179189729,"_cnpmcore_publish_time":"2021-12-16T19:18:51.964Z"},"1.0.0":{"name":"async-mqtt","version":"1.0.0","description":"Promise wrapper over MQTT.js","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/RangerMauve/async-mqtt.git"},"keywords":["mqtt","promise","async","publish","subscribe"],"author":{"name":"rangermauve"},"license":"MIT","bugs":{"url":"https://github.com/RangerMauve/async-mqtt/issues"},"homepage":"https://github.com/RangerMauve/async-mqtt#readme","dependencies":{"in-array":"^0.1.2","mqtt":"^2.3.1"},"devDependencies":{"mqtt-connection":"^3.0.0","tape":"^4.6.3"},"gitHead":"cb8f1c3ac904c113c1fa869e2302479e684a5992","_id":"async-mqtt@1.0.0","_shasum":"5c4f74e95b710ba16954eb3affb27e3e54c1468d","_from":".","_npmVersion":"3.8.7","_nodeVersion":"6.9.1","_npmUser":{"name":"rangermauve","email":"rangermauve@hotmail.com"},"maintainers":[{"name":"matteo.collina","email":""},{"name":"rangermauve","email":""},{"name":"tabrizian","email":""}],"dist":{"shasum":"5c4f74e95b710ba16954eb3affb27e3e54c1468d","size":3497,"noattachment":false,"key":"/async-mqtt/-/async-mqtt-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/async-mqtt/download/async-mqtt-1.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/async-mqtt-1.0.0.tgz_1488146463598_0.0569747993722558"},"directories":{},"publish_time":1488146465258,"_hasShrinkwrap":false,"_cnpm_publish_time":1488146465258,"_cnpmcore_publish_time":"2021-12-16T19:18:52.177Z"}},"readme":"<h1 align=\"center\">async-mqtt</h1>\n<p align=\"center\">Promise wrapper over MQTT.js</p>\n<p align=\"center\">\n<a href=\"https://github.com/mqttjs/async-mqtt\">\n    <img alt=\"\" src=\"https://david-dm.org/mqttjs/async-mqtt.svg?style=flat-square\">\n</a>\n<a href=\"https://www.npmjs.com/package/async-mqtt\">\n    <img alt=\"\" src=\"https://img.shields.io/npm/dt/async-mqtt.svg?style=flat-square\">\n</a>\n<a href=\"https://www.npmjs.com/package/async-mqtt\">\n    <img alt=\"\" src=\"https://img.shields.io/npm/v/async-mqtt.svg?style=flat-square\">\n</a>\n<br>\n<a href=\"https://github.com/mqttjs/async-mqtt\">\n    <img alt=\"\" src=\"https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square\">\n</a>\n</p>\n\n**IMPORTANT: Make sure you handle rejections from returned promises because they won't crash the process**\n\n## API\n\nThe API is the same as [MQTT.js](https://github.com/mqttjs/MQTT.js#api), except the following functions now return promises instead of taking callbacks\n\n- publish\n- subscribe\n- unsubscribe\n- end\n\n\n## Example\n\n```javascript\nconst MQTT = require(\"async-mqtt\");\n\nconst client = MQTT.connect(\"tcp://somehost.com:1883\");\n\n// When passing async functions as event listeners, make sure to have a try catch block\n\nconst doStuff = async () => {\n\n\tconsole.log(\"Starting\");\n\ttry {\n\t\tawait client.publish(\"wow/so/cool\", \"It works!\");\n\t\t// This line doesn't run until the server responds to the publish\n\t\tawait client.end();\n\t\t// This line doesn't run until the client has disconnected without error\n\t\tconsole.log(\"Done\");\n\t} catch (e){\n\t\t// Do something about it!\n\t\tconsole.log(e.stack);\n\t\tprocess.exit();\n\t}\n}\n\nclient.on(\"connect\", doStuff);\n```\n\nAlternately you can skip the event listeners and get a promise.\n\n```js\nconst MQTT = require(\"async-mqtt\");\n\nrun()\n\nasync function run() {\n  const client = await MQTT.connectAsync(\"tcp://somehost.com:1883\")\n\n  console.log(\"Starting\");\n\ttry {\n\t\tawait client.publish(\"wow/so/cool\", \"It works!\");\n\t\t// This line doesn't run until the server responds to the publish\n\t\tawait client.end();\n\t\t// This line doesn't run until the client has disconnected without error\n\t\tconsole.log(\"Done\");\n\t} catch (e){\n\t\t// Do something about it!\n\t\tconsole.log(e.stack);\n\t\tprocess.exit();\n\t}\n}\n\n```\n\n## Wrapping existing client\n\n```javascript\nconst { AsyncClient } = require(\"async-mqtt\");\n\nconst client = getRegularMQTTClientFromSomewhere();\n\nconst asyncClient = new AsyncClient(client);\n\nasyncClient.publish(\"foo/bar\", \"baz\").then(() => {\n\tconsole.log(\"We async now\");\n\treturn asyncClient.end();\n});\n```\n","_attachments":{},"homepage":"https://github.com/mqttjs/async-mqtt#readme","bugs":{"url":"https://github.com/mqttjs/async-mqtt/issues"},"license":"MIT"}