# node-mqtt

> ### Installation

Latest version **0.0.1** (published 2017-09-15) · ISC license · 0 weekly downloads

## Install

```sh
npm install node-mqtt
pnpm add node-mqtt
yarn add node-mqtt
bun add node-mqtt
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2017-09-15 |
| First published | 2017-09-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | song940 |

## Links

- npm: https://www.npmjs.com/package/node-mqtt
- npm.io page: https://npm.io/package/node-mqtt

## Recent versions

- 0.0.1 (latest) — 2017-09-15

## README

## node-mqtt

### Installation

```bash
$ npm install node-mqtt
```

### Example

```js
const mqtt = require('node-mqtt');

const client = mqtt.connect('mqtt://localhost')

client.on('connect', function () {
  client.subscribe('#')
});

client.on('message', function (topic, message) {
  console.log(topic,  message.toString());
});
```

### Contributing
- Fork this Repo first
- Clone your Repo
- Install dependencies by `$ npm install`
- Checkout a feature branch
- Feel free to add your features
- Make sure your features are fully tested
- Publish your local branch, Open a pull request
- Enjoy hacking <3

### ISC

This work is licensed under the [ISC license](./LICENSE).

---

---
_Source: https://npm.io/package/node-mqtt · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
