@paulcbetts/linux-distro

3.0.2 • Public • Published

linux-distro Build Status

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

Readme

Keywords

Package Sidebar

Install

npm i @paulcbetts/linux-distro

Weekly Downloads

30

Version

3.0.2

License

MIT

Last publish

Collaborators

  • paulcbetts