This project provides a script that converts a .txt
file containing university information into CSV format. The script processes a text file where each line contains rank, name, and town, separated by tab spaces. The output is a well-structured CSV file.
- Data name
.txt
should change by your variables name.
- Reads data from a
.txt
file. - Processes details: rank, name, and town.
- Converts the data into CSV format.
- Outputs the result into a new
.csv
file.
Make sure you have Node.js installed on your system.
- Clone the Repository:
git clone https://github.com/Elmahfoud-Oul/Ranking_Data_JS.git
- Install in path of script:
npm install
- Setup Txt file:
- Create
.txt
file. - Name
.txt
with name you put in script exp hereuniversities.txt
- Put your data in
.txt
file. - Change Names to your own names.
- Run script:
npm <ScriptName>.js
- Get results:
- check folder will find .csv
.txt
file.
THis script created by (Elmahfoud)