Files
tldr/pages.zh/linux/just.js.md

24 lines
490 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# just
> 一款用于 Linux 的 V8 JavaScript 运行时。
> 更多信息:<https://github.com/just-js/just>。
- 启动 REPL交互式 shell
`just`
- 运行 JavaScript 文件:
`just {{path/to/file.js}}`
- 通过将代码作为参数传递来评估 JavaScript 代码:
`just eval "{{code}}"`
- 在同名目录中初始化一个新项目:
`just init {{project_name}}`
- 将 JavaScript 应用程序构建为可执行文件:
`just build {{path/to/file.js}} --static`