sernum

1.0.0 • Public • Published

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

/sernum/

    Package Sidebar

    Install

    npm i sernum

    Weekly Downloads

    36

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    18.5 kB

    Total Files

    26

    Last publish

    Collaborators

    • bitt