lsb-release

Parser for lsb_release command output

lsb-release

lsb-release is a parser for lsb_release command output.

npm install lsb-release
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' }