# wizlib

> ```typescript import wizlib from "wizlib";

Latest version **1.0.8** (published 2023-01-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install wizlib
pnpm add wizlib
yarn add wizlib
bun add wizlib
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.8 |
| Published | 2023-01-22 |
| First published | 2022-11-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 26 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | anthdono |

## Links

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

## Recent versions

- 1.0.8 (latest) — 2023-01-22
- 1.0.7 — 2023-01-21
- 1.0.6 — 2022-12-07
- 1.0.5 — 2022-12-07
- 1.0.4 — 2022-11-25
- 1.0.3 — 2022-11-25
- 1.0.2 — 2022-11-25
- 1.0.1 — 2022-11-25
- 1.0.0 — 2022-11-25

## README

#### _wizlib_ - a minimal nodejs library written in typescript for interacting with wiz smartlights

```typescript
import wizlib from "wizlib";

// discover bulbs on the network with the static method
const discoveredBulbs = await wizlib.discover();

// returns an array of objects representing the bulbs found
[
    { ip: "192.168.1.102", state: "on" },
    { ip: "192.168.1.103", state: "on" },
    { ip: "192.168.1.123", state: "off" },
];

// create a bulb instance
const bulb = wizlib.createBulb("192.168.1.102");

// use the various inbuilt methods defined in the api
bulb.turnOn();
bulb.decreaseBrightness();
bulb.setRGB(50, 255, 10);
bulb.increaseRed();
```

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