https://github.com/caoccao/javetshell
Javet Shell is a console or Android application that provides Node.js flavored console interactions. It is a sample application of Javet.
https://github.com/caoccao/javetshell
android java java-v8 javet kotlin linux macos nodejs v8 windows
Last synced: 6 months ago
JSON representation
Javet Shell is a console or Android application that provides Node.js flavored console interactions. It is a sample application of Javet.
- Host: GitHub
- URL: https://github.com/caoccao/javetshell
- Owner: caoccao
- License: apache-2.0
- Created: 2021-10-26T07:05:06.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-16T02:22:26.000Z (7 months ago)
- Last Synced: 2024-10-29T10:28:40.974Z (6 months ago)
- Topics: android, java, java-v8, javet, kotlin, linux, macos, nodejs, v8, windows
- Language: Kotlin
- Homepage: https://www.caoccao.com/Javet/
- Size: 264 KB
- Stars: 7
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Javet Shell
[](https://github.com/caoccao/JavetShell/actions/workflows/android_build.yml) [](https://github.com/caoccao/JavetShell/actions/workflows/console_build.yml)
Javet Shell is a console or Android application that provides Node.js flavored console interactions. It is a sample application of [Javet](https://github.com/caoccao/Javet).
## Features
- [Android (Node)](android_node) or [Android (V8)](android_v8)
- [Linux + MacOS + Windows](console)
- Complete access to JVM
- Debug with Chrome Dev Tools## Quick Start
### Android
- Download the apk file from the latest [action](https://github.com/caoccao/JavetShell/actions/workflows/android_build.yml).
- Install the apk file.Please refer to [Android (Node)](android_node) or [Android (V8)](android_v8) for details.
### Console
```shell
Usage: Javet Shell options_list
Options:
--debugPort, -p [9229] -> Debug port { Int }
--runtimeType, -r [V8] -> JS runtime type { Value should be one of [node, v8] }
--scriptName, -s [main.js] -> Script name { String }
--verbose, -v [false] -> Verbose
--help, -h -> Usage info
```#### Manual
- Download the jar file from the latest [action](https://github.com/caoccao/JavetShell/actions/workflows/console_build.yml).
- Run `java -jar javet-shell-0.1.0.jar`#### Docker
- Run the following command to run the Docker container.
```sh
# amd64
docker run --rm -it -p 9229:9229 --entrypoint bash sjtucaocao/javet-shell:amd64-latest
# arm64
docker run --rm -it -p 9229:9229 --entrypoint bash sjtucaocao/javet-shell:arm64-latest
```- Run the following command to start the JavetShell console.
```sh
# amd64
./javet-shell-node.sh
# arm64
./javet-shell-v8.sh
```Please refer to this [page](console) for details.
## License
[APACHE LICENSE, VERSION 2.0](LICENSE)