New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

csv2objects

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csv2objects

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

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

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" }
// ]

Keywords

csv

FAQs

Package last updated on 30 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts