Authored by htoooth

fix

Showing 1 changed file with 0 additions and 11 deletions
1 -  
2 -const useragnet = require('useragent');  
3 -  
4 -const us = 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36';  
5 -  
6 -const result = useragnet.lookup(us);  
7 -  
8 -console.log(result.family, result.toVersion());  
9 -  
10 -console.log(result.os.family, result.os.toVersion());  
11 -