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

179
Vistas
save and restore nodejs REPL session

I want to save the nodejs repl session to file. And from the file I can restore the status of that session, including user defined global variables and functions.

For example, if I type

a=1;b={x:1};b.__proto__={y:2};f=()=>{console.log(1)};

I want to save the session to a file and when restored the session from it, I can get a session with 3 global variables a,b,f, which have been properly set.

UPDATE 1

Different from node REPL's .save command and .load command, what I want is the current user defined global variables and functions properly Serialized and Deserialized.

over 4 years ago · Santiago Trujillo
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