Revaluate.js lets you re-evaluate code within its original execution context without causing unwanted side-effects, only executing new code and updating previous state when changed.
npm install revaluate
MIT