/convert

Teste para Senior na empresa Agile Content - Convert é um comando de transforma logs no formato "Minha CDN" para "Agora"

Primary LanguageTypeScript

CONVERT CLI

NPM Version Package License

Description

Testing using stream through a CLI created with NestJS for converting a very large log file to another format

Installation

$ yarn

Running the app

# development
$ yarn start

# watch mode
$ yarn start:dev

# production mode
$ yarn start:prod

Test

# unit tests
$ yarn test

How to run the command

After running the yarn build command, run the command:

$ node dist/main convert origin destination

Example commands

To transform the log with more records to test a larger volume (10.368.000 records).

$ node dist/main convert https://mjpsolucoes.com.br/logs/input-01.txt output/minhaCDN.txt

The logs will be stored in the ./logs/* folder.

After running the command, the output should look like the image below:

image

Stay in touch