# hardwareid

> Return the computer serial number

Latest version **1.0.2** (published 2022-07-13) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2022-07-13 |
| First published | 2022-07-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Daniel Raeder |
| Maintainers | draeder |
| Keywords | hardware, id, username, architecture, serial, number, hardwareid |

## Links

- npm: https://www.npmjs.com/package/hardwareid
- Repository: https://github.com/draeder/hardwareid
- Homepage: https://github.com/draeder/hardwareid#readme
- Issues: https://github.com/draeder/hardwareid/issues
- npm.io page: https://npm.io/package/hardwareid

## Dependencies (1)

- [zx](https://npm.io/package/zx.md) ^7.0.7

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2022-07-13
- 1.0.1 — 2022-07-13
- 1.0.0 — 2022-07-12

## README

# HardwareId
## Return the computer serial number, along with username, platform and hardware architecture
Works on Mac, Windows, Linux, FreeBSD

## Install
```js
npm i hardwareid
```

## Usage
```js
import hardwareid from "hardwareid"

let sn = await hardwareid()
console.log(sn)
```

This outputs:
```js
{
  username: 'SomeUsername',
  serial: 'ABCDEFGH12345',
  platform: 'darwin',
  arch: 'x64'
}
```

## Credit
[@bresnow](https://github.com/bresnow/chainlocker)

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