Hand an options object to DeviceDetectionOnPremisePipelineBuilder or DeviceDetectionCloudPipelineBuilder, call build(), then await flowData.process() and read flowData.device. TypeScript declarations ship with the packages.
The on-premise examples keep a Device Detection or IP Intelligence data file fresh by watching the file, polling on an interval, or updating at start-up. Cloud examples look up devices by TAC or native model name, and fiftyone.ipintelligence.translation translates country names. Human Confidence and Identifiers need a Resource Key, because the cloud service answers them, and fiftyone.pipeline.did reads the 51Did.
npm install fiftyone.devicedetection fiftyone.ipintelligence
Code and issues: https://github.com/51Degrees/51degrees-node
Documentation: https://51degrees.com/documentation/index.html?utm_source=sourceforge&utm_medium=listing&utm_campaign=51degrees-node&utm_content=description&utm_term=docs
Features
- Cloud and on-premise pipeline builders for each product
- TypeScript declarations included
- Data file updates by file watcher, polling, or start-up check
- Device Detection lookups by TAC and native model name
- Country name translation for IP Intelligence
- Human Confidence and Identifiers answered by the cloud service
- fiftyone.pipeline.did for 51Did values
- Open source under the EUPL 1.2