mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-11-02 11:17:59 +01:00
Merge pull request #387 from sigkell/node
Reworded node doc, added one new example
This commit is contained in:
commit
52f443a5a2
1 changed files with 8 additions and 4 deletions
|
@ -1,11 +1,15 @@
|
|||
# node
|
||||
|
||||
>Main node command
|
||||
> Server-side JavaScript platform (Node.js)
|
||||
|
||||
- Call an interactive node shell
|
||||
- Run a JavaScript file
|
||||
|
||||
`node {{file}}.js`
|
||||
|
||||
- Start a REPL loop (interactive shell)
|
||||
|
||||
`node`
|
||||
|
||||
- Execute node on a JS file
|
||||
- Evaluate JavaScript by passing it in the command
|
||||
|
||||
`node {{FILENAME}}.js`
|
||||
`node -e "{{code}}"`
|
||||
|
|
Loading…
Reference in a new issue