🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Book a DemoInstallSign in
Socket

github.com/kenjitheman/json-to-csv

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/kenjitheman/json-to-csv

v0.1.1
Source
Go
Version published
Created
Source

json-to-csv simple sync/async converter

go logo

Project structure:

├── go.mod
├── jtoc.go
├── LICENSE
└── README.md

Installation

go get github.com/kenjitheman/jtoc

Usage

jtoc.Convert(jsonFilePath string, outputCsvFileName string)

jtoc.AsyncConvert(jsonFilePath string, outputCsvFileName string, numWorkers int)
  • NumWorkers - num of concurrent goroutines | change it if you want/need more or less.

  • Example:

jtoc.Convert("../man.json", "../man.csv")

jtoc.AsyncConvert("../man.json", "../man1.csv", 8)

Contributing

  • Pull requests are welcome, for major changes, please open an issue first to discuss what you would like to change.

license

  • MIT

FAQs

Package last updated on 20 Nov 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