Conversor do CATMAT/CATSER de CSV para JSON para uso no Controle de Pedidos da Prefeitura Municipal de Penápolis.
Table of Contents
This CLI Application is used to convert catmat.csv and catser.csv files, into *.json (used for debug purposes) and *.min.json (used by CPedidos-PMP application).
This CLI Application have two commands, they are:
- catmat: used to convert catmat.csv into catmat.json and catmat.min.json.
- catser: used to convert catser.csv into catser.json and catser.min.json.
Both commands have same args, they are:
- --input [path] (-i): this specifies the *.csv input path. This arg is obrigatory.
- --output [path] (-o): this specifies the *.json or *.min.json output path. This arg is obrigatory.
- --minify (-m): this specifies it outbut will be minified or not. This arg is not obrigatory and by default is false.
- In the folder 'bin' we have a script called 'build.ps1' that build this CLI Application;
- We have a script called 'convert.ps1' also, that convert catmat.csv and catser.csv files inside '/assets/input' into *.json (used for debug purposes) and *.min.json (used by application). The output files (*.json and *.min.json) will be generated in '/assets/output'.
- In the folder 'assets' we have input and output converted files, extracted from https://www.gov.br/compras/pt-br/acesso-a-informacao/consulta-detalhada/planilha-catmat-catser. The last update of this files was in 30/03/2023.
Built and maintained by ph-developer.