Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
fiftyone.devicedetection.onpremise
Advanced tools
Device detection on-premise services for the 51Degrees Pipeline API
Node Device Detection On-Premise
This project contains 51Degrees Device Detection engines that can be used with the Pipeline API.
The Pipeline is a generic web request intelligence and data processing solution with the ability to add a range of 51Degrees and/or custom plug ins (Engines)
This package provides a On-Premise implementation of Device Detection engine which makes use of a local data file. This includes a builder used to build a pipeline for On-Premise Device Detection engine.
This package requires the following additional packages:
Using NPM call:
npm install fiftyone.devicedetection.onpremise
When running on-premise, a local Hash V4.1 data file is required.
Hash: A large binary file populated with User-Agent signatures allowing very fast detection speeds.
51Degrees provides multiple options, some of which support automatic updates through the Pipeline API.
If the module is installed directly from Git then the binaries are also required. These binaries are native module which contains the core engine of device detection. Below are the steps to build these binaries:
npm install node-gyp --global
v142
10.0.18362.0
sudo apt-get install g++ make libatomic1
git submodule update --init --recursive
binding.51d
to binding.gyp
npm install
build
.node-gyp configure
node-gyp build
10.0.18362.0
.--msvs_version=[VS version]
and --msvs_target_platform_version=[Windows SDK Version]
as part of the npm install
command.
FiftyOneDeviceDetectionHashV4.node
under build/Release
folder.FiftyOneDeviceDetectionHashV4.node
to build
directory (which is one level up) and rename it using the following convention.
WARNING
: npm install
removes this copied file, so you will need to do the above steps again after running npm install
For details of how to run the examples, please refer to run examples. The tables below describe the examples that are available.
Example | Description |
---|---|
automaticupdates/dataFileSystemWatcher.js | How to configure automatic updates using the file system watcher to monitor for changes to the data file. |
automaticupdates/updateOnStartUp.js | How to configure the Pipeline to automatically update the device detection data file on startup. |
automaticupdates/updatePollingInterval.js | Ho to configure and verify the various automatic data file update settings. |
gettingstarted-console | How to use the 51Degrees on-premise device detection API to determine details about a device based on its User-Agent and User-Agent Client Hints HTTP header values. |
gettingstarted-web | How to use the 51Degrees Cloud service to determine details about a device as part of a simple web server. |
matchmetrics-console | How to view metrics associated with the results of processing with a Device Detection engine. |
metadata-console | How to access the meta-data that relates to the device detection algorithm. |
offlineprocessing-console | How to process data for later viewing using a Device Detection Hash data file. |
performance-console | How to configure the various performance options and run a simple performance test. |
updatedatafile-console | This example illustrates various parameters that can be adjusted when using the on-premise device detection engine, and controls when a new data file is sought and when it is loaded by the device detection software. |
useragentclienthints-web | This is now deprecated. Kept for testing purposes. Please see gettingstarted-web instead. |
In this repository, there are tests for the examples. You will need to install jest to run them:
npm install jest --global
You will also need to install any required packages for the examples in the Examples section.
To run the tests, navigate to the module directory and execute:
npm test
Process for rebuilding SWIG interfaces following an update to the device detection cxx code (This is only intended to be run by 51Degrees developers internally):
FAQs
Device detection on-premise services for the 51Degrees Pipeline API
The npm package fiftyone.devicedetection.onpremise receives a total of 797 weekly downloads. As such, fiftyone.devicedetection.onpremise popularity was classified as not popular.
We found that fiftyone.devicedetection.onpremise demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.