Skip to content
Merged
Prev Previous commit
Next Next commit
content(learn cli): add shebang link
  • Loading branch information
AugustinMauroy committed Dec 2, 2024
commit 917ea31f4db41904fd19e5f31191ca2c5c85a33f
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ If your main Node.js application file is `app.js`, you can call it by typing:
node app.js
```

Above, you are explicitly telling the shell to run your script with `node`. You can also embed this information into your JavaScript file with a "shebang" line. The "shebang" is the first line in the file, and tells the OS which interpreter to use for running the script. Below is the first line of JavaScript:
Above, you are explicitly telling the shell to run your script with `node`. You can also embed this information into your JavaScript file with a ["shebang"](https://en.wikipedia.org/wiki/Shebang_(Unix)) line. The "shebang" is the first line in the file, and tells the OS which interpreter to use for running the script. Below is the first line of JavaScript:

```js
#!/usr/bin/node
Expand Down
Loading