# upnp-client

> A Client Library to interface with UPnP compliant devices.

Latest version **0.0.1** (published 2012-09-16) · 0 weekly downloads

## Install

```sh
npm install upnp-client
pnpm add upnp-client
yarn add upnp-client
bun add upnp-client
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2012-09-16 |
| First published | 2012-09-16 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.2.0 |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Nathan Rajlich |
| Maintainers | robby |
| Keywords | UPnP, devices, client, library,  |

## Links

- npm: https://www.npmjs.com/package/upnp-client
- npm.io page: https://npm.io/package/upnp-client

## Dependencies (1)

- [step](https://npm.io/package/step.md) >= 0.0.3

## Alternatives

- [launchdarkly-js-client-sdk](https://npm.io/package/launchdarkly-js-client-sdk.md) — 2.5M weekly downloads
- [@elastic/elasticsearch](https://npm.io/package/@elastic/elasticsearch.md) — 2.1M weekly downloads
- [@c8y/client](https://npm.io/package/@c8y/client.md) — 15.3K weekly downloads
- [@signaldb/maverickjs](https://npm.io/package/@signaldb/maverickjs.md) — 1.7K weekly downloads
- [@bbc/http-transport-cache](https://npm.io/package/@bbc/http-transport-cache.md) — 1.2K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2012-09-16
- 0.0.0 — 2012-09-16

## README

node-upnp-client
================
### [UPnP][] "Control Point" Library for [NodeJS][].

A module for NodeJS written in JavaScript to interface with UPnP compliant devices.

Usage
-----

This module is still ___alpha___ quality, and it's API is a work-in-progress and
subject to change!

#### Discovery

Discovering UPnP compliant devices on the network is usually the first step in
anything UPnP-related:

``` javascript
var upnp = require("upnp");

// First, create a client instance
var controlPoint = new upnp.ControlPoint();

controlPoint.on("DeviceAvailable", function(device) {
  console.log(device.nt);
    //-> "urn:schemas-upnp-org:device:InternetGatewayDevice:1"
  console.log(device.location);
    //-> "http://192.168.0.1/root.sxml"
});

controlPoint.on("DeviceFound", function(device) {
  console.log(device.st);
    //-> "urn:schemas-upnp-org:device:InternetGatewayDevice:1"
  console.log(device.location);
    //-> "http://192.168.0.1/root.sxml"
}

controlPoint.search('urn:schemas-upnp-org:device:InternetGatewayDevice:1');
```

[UPnP]: http://upnp.org/
[NodeJS]: http://nodejs.org
[WikipediaUPnP]: http://wikipedia.org/wiki/Universal_Plug_and_Play

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