Socket
Socket
Sign inDemoInstall

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


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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc