linux-distro
Get the current Linux distro
Install
$ npm install --save linux-distro
Usage
var linuxDistro = require('linux-distro');
linuxDistro(function (err, data) {
console.log(data);
/*
{
os: 'Ubuntu',
name: 'Ubuntu 14.04 LTS',
release: '14.04',
code: 'trusty'
}
*/
});
CLI
$ npm install --global linux-distro
$ linux-distro --help
Example
$ linux-distro
Ubuntu 14.04 LTS (trusty)
License
MIT © Kevin Mårtensson