lib/info.js
function parseKeyValue (str, sep1, sep2) {
  var result = {}
  str.split(sep1).forEach(function (kv) {
    if (kv.length > 0) {
      kv = kv.split(sep2, 2)
      result[kv[0]] = parseValue(kv[1])
    }
  })
  return result
}
function parseKeyValue (str, sep1, sep2) {
  var result = {}
  str.split(sep1).forEach(function (kv) {
    if (kv.length > 0) {
      kv = kv.split(sep2, 2)
      result[kv[0]] = parseValue(kv[1])
    }
  })
  return result
}
function parseKeyValue ( str , sep1 , sep2 ) { var result = { } str . split ( sep1 ) . forEach ( function ( kv ) { if ( kv . length > 0 ) { kv = kv . split ( sep2 , 2 ) result [ kv [ 0 ] ] = parseValue ( kv [ 1 ] ) } } ) return result }
Parses a string value representing a key-value-map separated by sep1 and
sep2 into an Object.

Ex.:
- parseKeyValue('a=1;b=2', ';', '=') => { a: 1, b: 2 }

@private
Parses a string value representing a key - value - map separated by sep1 and sep2 into an Object .