bterm

这是一个运行在浏览器环境的终端

Usage no npm install needed!

<script type="module">
  import bterm from 'https://cdn.skypack.dev/bterm';
</script>

README

Installtion

npm install bterm -g

Usage

# First
bTerm # default prot 8888

# Or custom port
bTerm -p 8080
bTerm --port 8080

# Or open with browser
bTerm -o
bTerm --open

# Then
open http://localhost:8888

你还要以在你需要的地方使用 iframe 引用

<iframe src="http://locawhost:8888"></iframe>