분류 Nodejs

browser-run - 브라우저 환경에서 코드를 쉽게 실행할 수 있습니다.

컨텐츠 정보

  • 조회 260 (작성일 )

본문

https://github.com/juliangruber/browser-run



$ browser-run --help
Run JavaScript in a browser.
Write code to stdin and receive console output on stdout.
Usage: browser-run [OPTIONS]

Options:
  --browser, -b  Browser to use. Always available: electron. Available if installed: chrome, firefox, ie, phantom, safari  [default: "electron"]
  --port         Starts listening on that port and waits for you to open a browser                                       
  --static       Serve static assets from this directory                                                                 
  --mock         Path to code to handle requests for mocking a dynamic back-end                                          
  --input        Input type. Defaults to 'javascript', can be set to 'html'.                                             
  --node         Enable nodejs apis in electron                                                                          
  --basedir      Set this if you need to require node modules in node mode                                               
  --help         Print help