This is a simple Node.js application for converting a specific input CSV file to JSON format using TypeScript. The project reads an input CSV file named input.csv, manipulates the data, and produces an output file named output.json.
- Node.js (version >= 14.17)
- npm (Node Package Manager)
-
Clone the repository to your local machine:
git clone https://github.com/hbubley/excel-conversion.git
-
Navigate to the project directory:
cd excel-conversion -
Install dependencies:
npm install
-
Run the following command:
npm run script
After the conversion process is completed, you will find the output JSON file named output.json in the project directory.
- Extra Compare results and confirm output matches expected result:
npm run compare-json
-
Ensure mocha is globally installed:
npm install -g mocha
-
Run the following command:
npm run test
This script reads the input.csv file, processes the data, and generates an output.json file.
This script compares the generated output.json file with the expected output to ensure correctness.