tldr/pages/common/node.md

16 lines
219 B
Markdown
Raw Normal View History

2015-10-22 10:31:52 +03:00
# node
2014-03-06 00:37:38 +04:00
> Server-side JavaScript platform (Node.js).
2014-03-06 00:37:38 +04:00
- Run a JavaScript file:
2015-12-26 01:17:46 +03:00
`node {{file}}.js`
2016-02-28 23:09:02 +03:00
- Start a REPL (interactive shell):
2014-03-06 00:37:38 +04:00
`node`
- Evaluate JavaScript by passing it in the command:
2014-03-06 00:37:38 +04:00
2015-12-26 01:17:46 +03:00
`node -e "{{code}}"`