https://github.com/hack-light/hngi9-csv-task
This is a HNGi9 Project I submitted that reads a csv file, saves out each row as a json file, hashes the json files and creates a modified csv file with the new hash for each row included in the row.
https://github.com/hack-light/hngi9-csv-task
chia-blockchain chip-0007 csv json nft nodejs
Last synced: about 1 month ago
JSON representation
This is a HNGi9 Project I submitted that reads a csv file, saves out each row as a json file, hashes the json files and creates a modified csv file with the new hash for each row included in the row.
- Host: GitHub
- URL: https://github.com/hack-light/hngi9-csv-task
- Owner: Hack-Light
- Created: 2022-11-02T19:48:49.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-05T06:47:16.000Z (over 2 years ago)
- Last Synced: 2025-02-11T21:02:05.060Z (3 months ago)
- Topics: chia-blockchain, chip-0007, csv, json, nft, nodejs
- Language: JavaScript
- Homepage:
- Size: 102 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# CSV READER AND WRITER
This is a HNGi9 Project I submitted that reads a csv file, saves out each row as a json file, hashes the json files and creates a modified csv file with the new hash for each row included in the row.
> **Note:** This Script works with csv files that have the following headers - [ "TEAM NAMES", "Series Number", "Filename", "Name", "Description", "Gender", "Attributes", "UUID"].
To add new columns, Just edit the `columns` array and add the new column in the right place.
# STRUCTURE
- the `csv` folder contains the original csv file and the modified version. Copy your csv file into this folder
- the `json` folder contains all generated json files
- the `main.js` houses the implementation.# HOW TO RUN THE PROGRAM
- Clone the repo
- Change into the cloned directory
- In your terminal run `npm install`
- Copy your csv file into the `csv/` folder
- In the `main.js` file, change the `filename` variable to your csv file name without the extention.
- In your terminal run `node main.js`