Udger-nodejs is a local user-agent string and IP address parser for Node.js that leverages Udger's SQLite database (data ver. 3) to detect devices (desktop, tablet, Smart TV, game console), operating systems, client software types (browser, email client), device market names, and IP classifications (public proxies, VPNs, Tor exit nodes, fake crawlers, web scrapers, datacenter names). Version 1.5.1 requires Node.js >= 8.9.0 and a datafile from https://data.udger.com/. It features LRU caching and is tested against 50,000+ unique user agents. Key differentiators include local, offline operation for privacy and speed, and comprehensive IP intelligence alongside UA parsing.
npm install udger-nodejsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows CJS require, setting UA and IP via set(), parsing, and logging result.
Download udgerdb_v3.dat from https://data.udger.com/ and use it as the data source.
Always pass the path to the .dat file when calling require() or use setDatafile() before parse().
Upgrade Node.js to version 8.9.0 or later.
Ensure at least one of `ua` or `ip` is provided in the object passed to set().
Download udgerdb_v3.dat from https://data.udger.com/ and provide correct path.
Use const udgerParser = require('udger-nodejs')('./path/to/data.dat')No dependency data recorded yet.