sernum
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 = ;;
To prefix the system command with sudo
use the sudo
method:
sernum;
For the CLI command it's just
$ sernumABC123DEF456
Creds
License
MIT © Yuan Tao