Closed nikunjdnp closed 7 years ago
Hi, Here,I put code snippet where i get null value of plateform detail.
var platform = require('platform');
var source = req.headers['user-agent'], ua = useragent.parse(source); var info = platform.parse(ua.source); let machineInfo = { "browser-name": ua.browser, "browser-version": ua.version, "osType": info.os.family, "osVersion": info.os.version };
var source = req.headers['user-agent'], ua = useragent.parse(source);
var info = platform.parse(ua.source);
let machineInfo = { "browser-name": ua.browser, "browser-version": ua.version, "osType": info.os.family, "osVersion": info.os.version };
resultant output is :
{ description: null, layout: null, manufacturer: null, name: null, prerelease: null, product: null, ua: null, version: null, os: { architecture: null, family: null, version: null, toString: [Function: toString] }, parse: [Function: parse], toString: [Function: toStringPlatform] }
please help me!
Same here!!
Dup of #130.
@jdalton May I have information that when will i get? I mean version number!
Hi, Here,I put code snippet where i get null value of plateform detail.
var platform = require('platform');
var source = req.headers['user-agent'], ua = useragent.parse(source);
var info = platform.parse(ua.source);
let machineInfo = { "browser-name": ua.browser, "browser-version": ua.version, "osType": info.os.family, "osVersion": info.os.version };
resultant output is :
{ description: null, layout: null, manufacturer: null, name: null, prerelease: null, product: null, ua: null, version: null, os: { architecture: null, family: null, version: null, toString: [Function: toString] }, parse: [Function: parse], toString: [Function: toStringPlatform] }
please help me!