bestiejs / platform.js

A platform detection library.
https://mths.be/platform
MIT License
3.22k stars 408 forks source link

I am getting null all values when started server! #137

Closed nikunjdnp closed 7 years ago

nikunjdnp commented 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 };

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!

sailajagajulamsg commented 7 years ago

Same here!!

jdalton commented 7 years ago

Dup of #130.

nikunjdnp commented 7 years ago

@jdalton May I have information that when will i get? I mean version number!