serial-number

Reads the machine's serial number (a.k.a. service/asset tag) or Amazon EC2 instance-id

npm install serial-number
40 downloads in the last week
51 downloads in the last month

Serial Number

A simple Node.js module for accessing the serial number (a.k.a. Dell Service Tag, asset tag) of the local machine. Supports Linux, Mac (OS X), Windows, and FreeBSD. On Amazon EC2 instances, it will return the instance-id.

Installation

npm install serial-number

And/or install globally for a serial-number shell command: [sudo] npm install -g serial-number

Usage

The serial number value is retrieved from the system asynchronously and passed to a callback.

var serialNumber = require('serial-number');

serialNumber(function (err, value) {
    console.log(value);
});

License

MIT

npm loves you