Skip to content

Using vm2 in Node.js to implement a simple browser environment.

Notifications You must be signed in to change notification settings

theheqiang/egg_vm2

Repository files navigation

Egg_vm2

Implementing a simple browser environment using vm2 in Node.js.

How To Run

  1. npm install vm2 in the project's current directory.
  2. Input the JavaScript code you want to debug to path user/test/input.js
  3. Run main.js from the root directory of the project.
  4. The output.js file in the user/test directory is the final generated JavaScript file.
  5. Execute output.js and use the logs to make targeted changes to the environment

Note

Since a browser is essentially a operating system, it is not really possible to fully implement a browser environment using Node.js. Therefore, I can only do my best to improve this project as much as possible. My ability is limited as an individual, but everyone can also participate in this project and work together to constantly improve it.

About

Using vm2 in Node.js to implement a simple browser environment.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published