Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
github.com/ruzhila/excel_csv_to_json_or_markdown
This repository contains a Go program that converts data from Excel or CSV files to JSON or Markdown format.
By ruzhila.cn, a campus for learning backend development through practice.
This is a tutorial code demonstrating how to use Golang for data transformation. Pull requests are welcome. 👏
The program takes two command-line arguments: the input file and the output file. It reads the data from the input file and writes it to the output file in the specified format. The format is determined by the file extension.
If the output file has a .json
extension, the program writes the data as an array of JSON objects. The keys of the objects are taken from the first row of the input file, and each subsequent row is written as a separate object.
If the output file has a .md
extension, the program writes the data as a Markdown table.
go run main.go input.xlsx output.json
go run main.go input.csv output.md
This program uses the following Go libraries:
encoding/csv
for reading CSV filesencoding/json
for writing JSON filesos
for file operationspath/filepath
for handling file pathsgithub.com/qax-os/excelize
for reading Excel filesFAQs
Unknown package
Did you know?
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.