vmdom
Lightweight browser implementation for Node's VM.
Installation
npm
npm install vmdom
yarn
yarn add vmdom
Usage
const browser = const eval window = browser // Execute arbitrary JavaScript using eval console // logs "bar" to console // When you are done make sure all timers, event handlers, etc are cleaned upBrowser