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

311
Vistas
is it possible to set custom names by using columns key for columns using xlsx npm in node JS

I am trying to set columns name using the Xlsx npm package, after that, I want to map the excel file to get the value of the cells, I want to do something like the below code. is it something similar possible with the xlsx or any package, I have tried the convert-excel-to-json npm, the problem is with this package is sometimes the cell will be empty so I want to get the empty cell too, on this package it is skipping the empty cell.

// Mapping columns to keys
        columnToKey: {
          A: "roll",
          B: "name",
          C: "English",
          D: "Math", } 

  const mapExcel = excelData.sheetName.map((student) => {
       const {
         roll,
         name,
         English, Math } = student }

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