serialize-to-js
serialize-to-js copied to clipboard
How to deserialize?
There might be multiple options for you to choose from:
- eval() / Function()
- module.exports (see companion module serialize-to-module)
- safer-eval (which I personally can't recommend)
- vm2 (node only)
In case you can recommend something, which is considered safe, I'd be happy if you could leave a comment here.