Skip to content
Tutik Alexsandr edited this page Jan 30, 2023 · 3 revisions

Hi intergalactic boyscout.

Development

Find new user agents that are not detect as devices

This guide is intended for developers of the current package.

  1. clone the repository installation
  2. install dependencies via npm
  3. run the script from the tests/tools

Check all files for folder:

node report-test-files-ua.js "/src/www/scan-logs/" "/src/www/node-device-detector/tests/fixtures/" > ua_not_exist_tests.log

If you need to check 1 log file:

node report-test-files-ua.js "/src/www/scan-logs/file-user agent.log" "/src/www/node-device-detector/tests/fixtures/" > ua_not_exist_tests.log

In the file, we will get agents that are not in the tests and that are not defined.

Update master version to last regexes and tests

node tests/tools/update-fixtures.js

Update readme

node tests/tools/update-readme.js

Get list diff of devices based on the google devices

node tests/tools/report-google-device.js

Get list of devices for which the specification is not defined

node tests/tools/report-info-for-devices.js