Node.js Programming Tutorials

Node.js Quickies – Loading a CSV File

In this short tutorial I’m gonna show you how to load a CSV file using Node.js.

Firstly, you need to include the ya-csv package in your package.json file, under “dependencies”. Make sure you run “npm install” to download all your project’s dependencies.


This is how you can load a csv file:

You can learn more about this package by checking out it’s Github repo.

Node.js online course

Check out Node.js from Zero to Hero on Zenva Academy if you are after a comprehensive Node.js online course that can get you project-ready with this awesome tool.


Published by

Pablo Farias Navarro

Pablo is a web + mobile app developer and entrepreneur. Pablo is the founder of ZENVA. Besides teaching online how to create games, apps and websites to over 85,000 students, Pablo has created content for companies such as Amazon and Intel.ZENVA runs four development communities featuring game, web and mobile app development tutorials: Zenva Academy, GameDev Academy, HTML5 Hive (also known as "the hive"), and for Spanish speakers, De Idea A App.Pablo holds a Master in Information Technology (Management) degree from the University of Queensland (Australia) and a Master of Science in Engineering degree from the Catholic University of Chile. Specialized in web, mobile application and game development.

Share this article

  • Majid Lotfi

    Hi, thanks for this tutorial, can you please show me how to run it ?

  • Thanks Majid! You would need to create a new Node project, start with an empty “app.js” file where you put the code from the tutorial, and include the dependency “ya-csv” in packages.json