Common product enumeration parser.
npm install @thefaultvault/tfv-cpe-parserjavascript
let cpeParser = new CpeParser();
//'formatted' binding
let cpe = cpeParser.parse(cpe:2.3:h:f5:big-ip_protocol_security_manager:10.2.3:::::::*);
/**
* cpe =>
* {
* part: 'h',
* vendor: 'f5',
* product: 'big-ip protocol security manager',
* version: '10.2.3',
update: '',
edition: '',
language: '',
sw_edition: '',
target_sw: '',
target_hw: '',
other: ''
* }
/
//'uri' binding
let cpe = cpeParser.parse(cpe:/a:search_autocomplete_project:search_autocomplete:7.x-3.0:rc3:~~~drupal~~);
/**
* cpe =>
* {
* part: 'a',
* vendor: 'search autocomplete project',
* product: 'search autocomplete',
* version: '7.x-3.0',
* update: 'rc3',
edition: '',
language: '',
sw_edition: '',
* target_sw: 'drupal',
target_hw: '',
other: ''
* }
/
``