This script parse a log file, implemented in node.js
Node.js, and test libs: mockery and assert
It is simple to execute the script. Run the bellow command line:
node index.js fileName
result example
Url: https://eagerhaystack.com - Total: 750
Url: https://surrealostrich.com.br - Total: 734
Url: https://grimpottery.net.br - Total: 732
Status: 200 - Total: 1417
Status: 201 - Total: 1402
Status: 204 - Total: 1388
Status: 400 - Total: 1440
Status: 404 - Total: 1474
Status: 500 - Total: 1428
Status: 503 - Total: 1451
The unit tests is the script documentation :D