A helper utility to generate a csv export for the spigot-anti-piracy-backend
The helper application reduces the logfile of spigot-anti-piracy-backend to a CSV with unique user IDs and a count of different ips in order to determine which user could have leaked the resources.
This has been tested with Node.js v12 and v14 LTS.
$ npm install -g spigot-anti-piracy-csv-exporter
(Optionally without the global flag)
$ git clone https://github.com/timbru31/spigot-anti-piracy-csv-exporter.git $ cd spigot-anti-piracy-csv-exporter $ npm install
You need to specify thr path for the logfile. It defaults to
request.log in the current directory if omitted.
$ npm run start
Configuration via environment variables
|CSV_FILE||./users.csv||Output CSV file|
|LOG_FILE||./request.log||Log file of requests|
To run the linter use
$ npm run lint
The code is linted using
Keep the warnings to zero.
Please follow the commitizen style when making new commits!
Built by (c) Tim Brust and contributors. Released under the MIT license.