🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
Socket

github.com/einsteiniumeinsteinian/csv-to-json-converter-golang

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/einsteiniumeinsteinian/csv-to-json-converter-golang

v0.0.0-20230714152701-c931f9dd8e77
Source
Go
Version published
Created
Source

CSV TO JSON FILE CONVERTER

Can be used to convert csv files to a JSON file. It uses the first entires as the object key.

Usage

The Scripts does the following

  • checks arguments to ensure that csv file is passesd properly
  • converts the csv file to a JSON file.
  • converts up to 10 files at once

Dependecies

  • go programming language installed

clone repo

   go run convert-csv-json.go <filename/filepath>

Atleast one file must be provided as argument and must have extension of csv. To convert multiple csv files run same command with multiple file path.

samples files have been provided for test:

go run convert-csv-json.go adjustments.csv new-top-surnames.csv state-pop.csv

FAQs

Package last updated on 14 Jul 2023

Did you know?

Socket

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.

Install

Related posts