tldr/pages.zh/common/node.md

25 lines
475 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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