suwanny / flexlm_license_parser

Simple Flexlm License Parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flexlm_license_parser

Simple Flexlm License Parser

Install

$ npm install -save flexlm-parser

or

$ npm install -g flexlm-parser

how to use the parser

$ flexlmparse license_file.lic

how to use in your code

new LicenseFileParser().parse(filePath, function (err, info){
  if (err) {
    console.error(err);
  }
  console.dir(info);
});

=>

{ vendor: { vendor: 'VMWARELM', vendor_daemon_path: 'port=27010' },
  server: { use: true, host: 'this_host', hostid: 'ANY', port: '27000' },
  features:
   [ { type: 'INCREMENT',
       name: 'PROD_ESX_FULL',
       vendor: 'VMWARELM',
       version: '2005.05',
       expiredDate: 'permanent',
       capacity: '32' },

About

Simple Flexlm License Parser

License:MIT License


Languages

Language:JavaScript 100.0%