Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

144
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda