Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@alexpekurovsky/logparser
Advanced tools
LogParser is converter from file with single JSON object per line to CSV file.
LogParser is converter from file with single JSON object per line to CSV file.
This project is done as exam task for IronSource.
$ npm i @alexpekurovsky/logparser [-g]
$ logparser FILENAME # to process single file
$ logparser DIRNAME # to process all files in dir
$ logparser DIRNAME PATTERN # to process all files in dir matching mattern
$ logparser DIRNAME PATTERN true # to process all files in dir and subdirs matching pattern
$ logparser /var/log/IronSourceApp/IS_main.log
$ logparser /var/log/IronSourceApp
$ logparser /var/log/IronSourceApp '*.log'
$ logparser /var/log 'IS_*.log' true
$ ll
-rw-r--r-- 1 root root 6651236352 Jun 28 01:55 big.log
-rw-r--r-- 1 root root 2822 Jun 27 23:20 light.log
-rwxr-xr-x 1 root root 238 Jun 28 01:54 makebig.sh
-rw-r--r-- 1 root root 51962784 Jun 27 22:40 Mundo-json-2013-01-03.log
$ logparser . '*.log'
Processing big.log ...
Processing light.log ...
Processing Mundo-json-2013-01-03.log ...
Processing light.log completed.
Processing Mundo-json-2013-01-03.log completed.
Processing big.log completed.
$ ll -h
-rw-r--r-- 1 root root 6,2G Jun 28 01:55 big.log
-rw-r--r-- 1 root root 3,6G Jun 28 02:18 big.log.csv
-rw-r--r-- 1 root root 2,8K Jun 27 23:20 light.log
-rw-r--r-- 1 root root 1,8K Jun 28 01:56 light.log.csv
-rwxr-xr-x 1 root root 238 Jun 28 01:54 makebig.sh
-rw-r--r-- 1 root root 50M Jun 27 22:40 Mundo-json-2013-01-03.log
-rw-r--r-- 1 root root 29M Jun 28 01:56 Mundo-json-2013-01-03.log.csv
Feel free to use this code, if needed
Updates to code to work more efficient on big files after Job Offer :)
FAQs
LogParser is converter from file with single JSON object per line to CSV file.
The npm package @alexpekurovsky/logparser receives a total of 3 weekly downloads. As such, @alexpekurovsky/logparser popularity was classified as not popular.
We found that @alexpekurovsky/logparser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.