Latest Threat Research:Malicious dYdX Packages Published to npm and PyPI After Maintainer Compromise.Details
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

Source
npmnpm
Version
1.0.1
Version published
Weekly downloads
179
-12.68%
Maintainers
1
Weekly downloads
 
Created
Source

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) {
	if (err) {
		throw err;
	}

	console.log(data.os);
	//=> Ubuntu

	console.log(data.name);
	//=> Ubuntu 14.04 LTS

	console.log(data.release);
	//=> 14.04

	console.log(data.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 28 Oct 2014

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