# pi-volts

> Measure the volts of a Raspberry Pi.

Latest version **3.0.0** (published 2023-03-28) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install pi-volts
pnpm add pi-volts
yarn add pi-volts
bun add pi-volts
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.0 |
| Published | 2023-03-28 |
| First published | 2014-10-07 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 12.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Oden |
| Maintainers | odensc |
| Keywords | raspberry, pi, raspberrypi, volt, volts |

## Links

- npm: https://www.npmjs.com/package/pi-volts
- Repository: https://github.com/odensc/pi-volts
- Issues: https://github.com/odensc/pi-volts/issues
- npm.io page: https://npm.io/package/pi-volts

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 3.0.0 (latest) — 2023-03-28
- 2.0.0 — 2017-06-18
- 1.0.2 — 2014-10-07
- 1.0.1 — 2014-10-07
- 1.0.0 — 2014-10-07

## README

pi-volts
==============

Measure the volts on a Raspberry Pi.

## Usage
```js
const piVolts = require("pi-volts");

piVolts.measure((err, volts) => {
	if (err) console.error(err);
	else console.log("core volts: " + volts);
});

piVolts.measure((err, volts) => {
	if (err) console.error(err);
	else console.log("sdram_p volts: " + volts);
}, { id: "sdram_p" });
```

## API
### measure(function callback(err, volts) [, options])
Measures the volts and calls the callback with the error and volts.

options takes an object with the property "id", which can be one of "core", "sdram_c", "sdram_i" or "sdram_p" (defaults to core.)

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