1.0.0 • Published 7 years ago

sernum v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

sernum Build Status

Reads the machine's serial number. Supports Linux, Mac (OS X), Windows, and FreeBSD.

Install

$ npm install sernum

And/or install globally for a sernum shell command:

$ [sudo] npm install -g sernum

Usage

The serial number value is retrieved from the system asynchronously and return with a promise.

const sernum = require('sernum');
sernum().then(val => console.log(val));

To prefix the system command with sudo use the sudo method:

sernum.sudo().then(val => console.log(val));

For the CLI command it's just

$ sernum
ABC123DEF456

Creds

License

MIT © Yuan Tao

1.0.0

7 years ago

0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago