1.0.15 • Published 2 years ago
log-parser-assignment v1.0.15
Log-Parser-Assignment
Parses a log file into a CSV as while as get the device type, browser, country, and state.
Installation
Use the package manager npm to install log-parser-assignment.
npm install log-parser-assignment
Usage
const logParser = require('log-parser-assignment');
logParser.parseLogFileToCSV(pathToLogFile, pathToCSVFile)
Command Line Usage
Step 1: Install CLI version of log-parser-assignment.
npm install -g log-parser-assignment
Step 2: Run CLI log-parser-assignment. pathToLogFile is the absolute path to the log file. pathToGeneratedCSVFile is the absolute path for the generated CSV file.
log-parser-assignment [pathToLogFile] [pathToGeneratedCSVFile]