@paulcbetts/linux-distro
v3.0.2
Published
Get the current Linux distro
Downloads
169
Readme
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