Socket
Book a DemoInstallSign in
Socket

linux-distro

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

linux-distro

Get the current Linux distro

latest
Source
npmnpm
Version
4.0.1
Version published
Maintainers
1
Created
Source

linux-distro Build Status

Get the current Linux distro

Install

$ npm install --save linux-distro

Usage

const linuxDistro = require('linux-distro');

linuxDistro().then(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

Keywords

distro

FAQs

Package last updated on 05 Sep 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts