Files
tldr/pages.zh/common/node.md
2021-08-31 15:13:49 +08:00

25 lines
474 B
Markdown
Raw 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.

# node
> 服务器后端 JavaScript 平台Node.js
> 更多信息:<https://nodejs.org>.
- 运行一个 JavaScript 文件:
`node {{文件名}}`
- 开始一个 REPL 交互式解释器:
`node`
- 执行输入的 JavaScript 代码:
`node -e "{{代码}}"`
- 执行输入的 JavaScript 代码并显示结果:
`node -p "{{代码}}"`
- 启动检查器并在程序源码解析完成后等待调试器连接:
`node --no-lazy --inspect-brk {{文件名}}`