Socket
Socket
Sign inDemoInstall

easy-csv-parser

Package Overview
Dependencies
9
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.7 to 1.0.8

14

index.js

@@ -20,7 +20,11 @@ const axios = require("axios");

for (let i = 1; i < lines.length - 1; i++) {
const values = lines[i].split(",");
let values;
values = lines[i].split(",");
// console.log(values);
const obj = {};
for (let j = 0; j < headerKeys.length; j++) {
obj[headerKeys[j]] = values[j];
obj[headerKeys[j]] =
j == headerKeys.length - 1 ? values[j].split("\r")[0] : values[j];
}

@@ -65,2 +69,8 @@

csvToObject(
"https://res.cloudinary.com/dyy7ynyzb/raw/upload/v1693837919/dummy_mffrz5.csv"
).then((res) => {
console.log(res);
});
module.exports = { csvToObject, csvToJSON };

2

package.json
{
"name": "easy-csv-parser",
"version": "1.0.7",
"version": "1.0.8",
"description": "easy-csv-parser simplifies CSV data parsing in Node.js. Fetch, extract headers, and convert CSV files from URLs to JavaScript objects and JSON effortlessly. Ideal fordevelopers, data analysis, automation, and more.",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc