Skip to content

Fast and easy tool to turn a CSV file to a JavaScript objects array.

License

Notifications You must be signed in to change notification settings

luispablo/csv2objects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

csv2objects

Fast and easy tool to turn a CSV file to a JavaScript objects array.

How to use

const csv2objects = require("csv2objects");
const objects = csv2objects("./test/sample.csv");
// [
//   { social_id: "UCmdrrEl_ms-aZrf8E5DtljQ", username: "mullerquaker",      brand_name: "Muller",             country_name: "Global",             ignore_category: "Yoghurt",       language: "English" },
//   { social_id: "UC0Szb7wRfe8IxgBBRqDwNmQ", username: "TotalGreekYoghurt", brand_name: "Fage",               country_name: "United Kingdom",     ignore_category: "Yoghurt",       language: "English" },
//   { social_id: "UCNBNXG10CyUe1AGA8Q3oMyA", username: "LactacydRussia",    brand_name: "Lactacyd (Sanofi)",  country_name: "Russian Federation", ignore_category: "Womens Health", language: "Russian" }
// ]

About

Fast and easy tool to turn a CSV file to a JavaScript objects array.

Resources

License

Stars

Watchers

Forks

Packages

No packages published