vam*_*olu 5 javascript linux google-chrome node.js
我想通过node --inspect app.js在浏览器中自动运行来打开 URL。我正在使用Ubuntu Linux,但该osascript解决方案对我来说效果不佳。
我努力了:
$(grep 'chrome-devtools://' <(node --inspect bin/www.js $@ 2>&1)) | xargs google-chrome
( export DEBUG_URL = $(grep 'chrome-devtools://' <(node --inspect bin/www.js $@ 2>&1)); google-chrome DEBUG_URL )
google-chrome $(grep 'chrome-devtools://' <(node --inspect bin/www.js $@ 2>&1))
xdg-open $(grep 'chrome-devtools://' <(node --inspect bin/www.js $@ 2>&1))
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
185 次 |
| 最近记录: |