Showing
1 changed file
with
0 additions
and
11 deletions
test.js
deleted
100644 → 0
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 | - |
-
Please register or login to post a comment