Is there a way to determine the operating system of the user browsing and also whether it is 64 bit or a 32 bit
To detect the operating system on the client machine, one can simply use navigator. appVersion or navigator. userAgent property. The Navigator appVersion property is a read-only property and it returns a string which represents the version information of the browser.
The os. type() method is an inbuilt application programming interface of the os module which is used to get Operating system name.
Use nodejs built in module os
for getting architecture information
OS module Docs
var os = require("os");
console.log(os.arch()); //ia32
you can use process object
porcess.arch //'ia32'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With