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

235
Vistas
How to get csv records as objects in fast-csv, with properties in their original types rather than string?

Currently I am able to parse data as objects, But the object looks like:

{ CallTime: '0', Color_MachineState: 'ManualStop', StartDate: '2021/1/7 19:03', MachineName: 'CDK10' }

Now, What I want is, the properties should be in their original types.

{ CallTime: 0, Color_MachineState: 'ManualStop', StartDate: Thu Jan 07 2021 19:03:00 GMT+0530 (India Standard Time), MachineName: 'CD10' }

For a moment, considering Date have many formats, We can skip date fields to be dealt specifically, but other fields like integers, real numbers should be in their original type.

I have an option to iterate over object properties with a wrapper function over JSON.parse() to handle failures, but I'm expecting something better, and faster as I'll be dealing with thousands of records.

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