Open victorb opened 8 years ago
Something that would be useful to have is a save/restore functionality, where previous entered code and state can be restored in a future session.
trymodule lodash
var something = lodash.repeat('WIN', 5)
save()
trymodule colors
restore()
And now something and lodash is available in the repl again.
something
lodash
I suppose save() and restore() functions should be used as properties of an object such as trymodule.save() to protect them from accidental overrides.
trymodule.save()
Something that would be useful to have is a save/restore functionality, where previous entered code and state can be restored in a future session.
trymodule lodash
and repl opens with lodash installedvar something = lodash.repeat('WIN', 5)
save()
trymodule colors
restore()
And now
something
andlodash
is available in the repl again.