3rd-Eden / useragent

Useragent parser for Node.js, ported from browserscope.org
MIT License
897 stars 137 forks source link

how to define custom type #110

Open willin opened 7 years ago

willin commented 7 years ago

useragent works perfect, but we have some specific types

such as appName/1.0.0 deviceName/1.0.0

Agent {
  family: 'appName',
  major: '1',
  minor: '0',
  patch: '0' },
Os {
   family: 'deviceName',
  major: '1',
  minor: '0',
  patch: '0' 
}

how to define them?