
We are happy to announce the addition of a Node.js Module for our high performance C++ API to deliver server-side device detection at the blazing fast speeds that a Node.js application deserves. We have also made the installation process just as fast by allowing you to install the module with a single `npm install` command.
“ScientiaMobile has always paid particular attention to the community of developers” – said Luca Passani, ScientiaMobile’s CTO. “This includes paying attention to developers of platforms different from Java, PHP and ASP.NET. While Node.js is not equally popular, Node.js is a platform that has attracted amazing interest from small and large companies alike.”
We have offered a Node.js solution through the WURFL Cloud service, but we decided it was time to ramp things up and offer developers the speed and flexibility available with our C++ InFuze API and make it easily available for use in Node.js applications.
I’m sure you are probably wondering how to initialize the Node.js InFuze Module, so below is a quick example to get started. For more information on how to get started with the Node.js InFuze module, you can find the documentation here.
var wurfl_nodejs_module = require('../lib/WurflInFuze.js');
var wurfl = new wurfl_nodejs_module.Wurfl();
wurfl.initialize();
var device = wurfl.lookup("Mozilla/5.0 (Linux; Android 15; Pixel 9 Pro XL Build/AP3A.240905.014; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/127.0.6533.103 Mobile Safari/537.36");
console.log("Device ID is: " + device.getDeviceId());
// google_pixel_9_pro_xl_ver1_suban150Code language: JavaScript (javascript)
