Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

142
Views
Using CSV node module in chrome extension

I am trying to make an extension for chrome and one of the needed functionality is to make it possible to save user's data locally (But I do plan to integrate Gdrive saving). I wanted to save user's data into CSV assuming that it would be easier but it turned out a disaster.

I have tried many different methods in order to make it possible but it seems like it's no use.

Here's part of the code that doesn't work:

    var { parse } = require('csv-parse');

    const fs = require("chrome-fs");
    const records = [];

    const csvFile = chrome.runtime.getURL("save_file.csv");

    var parser = parse({ columns: true }, function(err, records) {
        console.log(records);
    });

    fs.createReadStream(chrome.runtime.getURL("save_file.csv")).pipe(parser);

and here's an error that browser throws at me when I try to initialize this code:

Uncaught Error
    at chrome.js:511:1
    if (err.name === 'NotFoundError') {
            var enoent = new Error()
511:        enoent.code = 'ENOENT'
            callback(enoent)

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!