Using Node.js API with Premium and Enterprise data files
Premium and enterprise data files contain significantly more properties about each device in our database as well as a far greater number of device/software combinations. To see the full list of properties please see: Device Dictionary . To sign up for a 30-day free trial please submit the: Evaluation Request .
If you already have signed up for our Premium or Enterprise device data you don't need to reinstall the detector. All you need to do is modify the new Parser() line as follows:
Where '51Degrees-Enterprise' is the string representing location of your Premium or Enterprise data file. By default detector will look for the data file in the root directory of the project. So, if my project is located in D:\Users\User\Node\ then the above line will look for a file 51Degrees-Enterprise in: D:\Users\User\Node\. If you prefer to keep data file in a different location then you can specify path to that location in the above string. For example:
Will make detector search for 51Degrees file in D:\Users\User\Node\data\. Absolute paths currently do not work. Use relative paths.
Our Node.js implementation currently supports TRIE data files. The only change you need to make to use a TRIE data file is to specify file extension with in the new Parser() line as follows:
Same rules for data file paths apply.