Linux command
just.js 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Example
just
Run
just [path/to/file.js]
Evaluate
just eval "[code]"
Initialize
just init [project_name]
Build
just build [path/to/file.js] --static
说明
just is a small, embeddable V8 JavaScript runtime for Linux. It provides a minimal runtime environment for executing JavaScript applications with direct access to Linux system calls. The runtime is designed to be lightweight and fast-starting, suitable for serverless functions, command-line tools, and embedded applications. It can compile JavaScript into standalone executables.
参数
- eval _CODE_
- Evaluate JavaScript code string
- init _NAME_
- Initialize a new project directory
- build _FILE_
- Build JavaScript into executable
- --static
- Create statically linked executable
FAQ
What is the just.js command used for?
just is a small, embeddable V8 JavaScript runtime for Linux. It provides a minimal runtime environment for executing JavaScript applications with direct access to Linux system calls. The runtime is designed to be lightweight and fast-starting, suitable for serverless functions, command-line tools, and embedded applications. It can compile JavaScript into standalone executables.
How do I run a basic just.js example?
Run `just` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does eval _CODE_ do in just.js?
Evaluate JavaScript code string