elphadeal-terminal
v1.0.4
Published
A custom terminal design powered by Go WebAssembly
Downloads
28
Maintainers
Readme
Elphadeal Terminal
A custom terminal design powered by Go WebAssembly, packaged as an npm module.
Installation
npm install -g elphadeal-terminalUsage
As a command-line tool
Run the interactive terminal:
elphadeal-terminalOr using npx:
npx elphadeal-terminalIn browser
Include the necessary files in your HTML:
<!DOCTYPE html>
<html>
<head>
<title>Elphadeal Terminal</title>
<script src="node_modules/elphadeal-terminal/dist/wasm_exec.js"></script>
<script src="node_modules/elphadeal-terminal/dist/index.js"></script>
</head>
<body>
<div id="terminal-container"></div>
<script>
const terminal = new GoWasmTerminal('terminal-container');
</script>
</body>
</html>Commands
hello: Prints a greeting from Go WASMclear: Clears the terminalexit: Exits the terminal- Any other command: Executes as a shell command
Supported Shells
- Bash
- Zsh
- Cmd (Windows)
- PowerShell
Building
To build the package:
npm run buildPublishing
To publish to npm:
npm publish