# ddc-rs

> DDC/CI high level library for NodeJS (cross platform)

Latest version **0.1.9** (published 2022-07-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install ddc-rs
pnpm add ddc-rs
yarn add ddc-rs
bun add ddc-rs
```

## 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.1.9 |
| Published | 2022-07-10 |
| First published | 2022-07-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 49.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 6 |
| Author | Alexandre MONIER |
| Maintainers | thalusa |
| Keywords | DDC/CI, DDC |

## Links

- npm: https://www.npmjs.com/package/ddc-rs
- Repository: https://github.com/ThalusA/ddc-rs
- Homepage: https://github.com/ThalusA/ddc-rs#readme
- Issues: https://github.com/ThalusA/ddc-rs/issues
- npm.io page: https://npm.io/package/ddc-rs

## Dependencies (1)

- [cargo-cp-artifact](https://npm.io/package/cargo-cp-artifact.md) ^0.1

## Recent versions

- 0.1.9 (latest) — 2022-07-10
- 0.1.8 — 2022-07-08
- 0.1.7 — 2022-07-08
- 0.1.6 — 2022-07-08
- 0.1.5 — 2022-07-08
- 0.1.4 — 2022-07-08
- 0.1.3 — 2022-07-08
- 0.1.2 — 2022-07-08
- 0.1.1 — 2022-07-08
- 0.1.0 — 2022-07-08

## README

# ddc-rs

`ddc-rs` is a cross-platform Node package for controlling monitors with
[DDC/CI](https://en.wikipedia.org/wiki/Display_Data_Channel).

## Documentation

https://github.com/ThalusA/ddc-rs/blob/master/index.ts

## Examples

```javascript
import { Display, DisplayManager, VCPFeatures } from "ddc-rs";

const displays = new DisplayManager().collect();

for (const display of displays) {
    const vcp_feature = display.getVcpFeature(VCPFeatures.ImageAdjustment.Luminance);
    console.info(`Display at index ${display.index} have a brightness value of`);
    console.info(vcp_feature);
    display.setVcpFeature(VCPFeatures.ImageAdjustment.Luminance,
                          vcp_feature.currentValue + 5);
}
```

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