njh / webshell.js

A command line interpreter for the browser, including a lightweight OS emulation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

webshell.js

                __         __         ____    _     
 _      _____  / /_  _____/ /_  ___  / / /   (_)____
| | /| / / _ \/ __ \/ ___/ __ \/ _ \/ / /   / / ___/
| |/ |/ /  __/ /_/ (__  ) / / /  __/ / /   / (__  )
|__/|__/\___/_.___/____/_/ /_/\___/_/_(_)_/ /____/  
                                       /___/        

webshell.js is a command line interpreter that runs in your browser.

Live Demo

Try webshell.js and see it in action

Get started

Prerequisites: NodeJS 18+

With run.sh, do run::install and run::build. That will create a dist/ folder, containing a webshell.js bundle. webshell.js is supposed to be included via a <script> tag on a web page. See the example to learn how it is supposed to be used.

Styling

The webshell outputs nearly bare, unstyled HTML. In order to make it look good you must provide some CSS.

For your convenience, choose one of the available themes and include it via <style> or <link href="">.

About

A command line interpreter for the browser, including a lightweight OS emulation.

License:Apache License 2.0


Languages

Language:JavaScript 96.4%Language:CSS 1.6%Language:HTML 1.4%Language:Shell 0.6%