Coder Social home page Coder Social logo

json-formatter's Introduction

json-formatter

Shell Script para formatar um arquivo JSON.

Linux Shell Script to format a JSON file.

Dependências / Dependencies

É necessario ter o jq instalado em sua máquina.

Must have jq installed.

  • Linux: sudo apt-get install jq
  • Windows: https://stedolan.github.io/jq/

Como usar / How to use

No terminal, executar o comando:

./json-formatter.sh "pasta de origem" "nome do arquivo"

At the terminal, run the command:

./json-formatter.sh "source folder" "file name"

Descrição dos parâmetros

1-Pasta de origem (onde o arquivo se encontra). Exemplo: home/mariana/formatter 2-Nome do arquivo. Exemplo: se temos um arquivo relatorio.json, o nome deve ser relatorio.

./json-formatter.sh home/mariana/formatter relatorio

O resultado, após a execução do script é um novo arquivo .json formatado. Exemplo: relatorio.fmt.json.

Parameters description

1- Source folder (where the file is located). Example: home/mariana/formatter 2- File name. Example: if we have a file report.json, the name must be report.

The result, after running the script is a new formatted .json file. Example: report.fmt.json.

json-formatter's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.