Parser for `lsb_release` command output
JavaScript
Switch branches/tags
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
test
.gitignore
.travis.yml
LICENSE
README.md
package.json

README.md

lsb-release Build Status

lsb-release is a parser for lsb_release command output.

Installation

npm install lsb-release

Usage

var lsbRelease = require('lsb-release');

lsbRelease(function (_, data) {
  console.dir(data);
});

Will output something similar to:

{ lsbVersion: ':core-4.0-amd64:core-4.0-noarch',
  distributorID: 'Fedora',
  description: 'Fedora release 14 (Laughlin)',
  release: '14',
  codename: 'Laughlin' }