trymodule
trymodule copied to clipboard
Save/Restore session
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.
- User enters
trymodule lodashand repl opens with lodash installed - User enters
var something = lodash.repeat('WIN', 5) - User enters
save() - User closes repl and opens it again with
trymodule colors - User enters
restore()
And now something and lodash is available in the repl again.
I suppose save() and restore() functions should be used as properties of an object such as trymodule.save() to protect them from accidental overrides.