zhaojiafu / egg_vm2

vm2 js补环境

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

vm2 js补环境


Languages

Language:JavaScript 97.2%Language:HTML 2.8%