add webi dat dat dat
[webi-installers/.git] / node / README.md
index 4c90abd16584a8177231406ccad9f605135bb004..828dfae7ee854e860b35f1dc2eda945cbf534668 100644 (file)
@@ -3,28 +3,41 @@ title: Node.js
 homepage: https://nodejs.org
 tagline: |
   Node.jsĀ® is a JavaScript runtime built on Chrome's V8 JavaScript engine.
-description: |
-  Node is great for simple, snappy HTTP(S) servers, and for stitching APIs together with minimal fuss or muss.
-
-  Installing node via webi will:
-
-    - pick a compatible version from the [Node Releases API](https://nodejs.org/dist/index.tab)
-    - download and unpack to `$HOME/.local/opt/node/`
-    - update your `PATH` in `$HOME/.config/envman/PATH.env`
-    - run `npm config set scripts-prepend-node-path=true`
-      - (prevents conflicts with other installed node versions)
-    - absolutely leave system file permisions alone
-      - (no dreaded `sudo npm` permission errors)
 ---
 
-Hello World
+## Updating `node`
+
+```bash
+webi node@stable
+```
+
+Use `@lts` for long-term support and the `@beta` tag for pre-releases, or
+`@x.y.z` for a specific version.
+
+## Cheat Sheet
+
+Node is great for simple, snappy HTTP(S) servers, and for stitching APIs
+together with minimal fuss or muss.
+
+Installing node via webi will:
+
+- pick a compatible version from the
+  [Node Releases API](https://nodejs.org/dist/index.tab)
+- download and unpack to `$HOME/.local/opt/node/`
+- update your `PATH` in `$HOME/.config/envman/PATH.env`
+- run `npm config set scripts-prepend-node-path=true`
+  - (prevents conflicts with other installed node versions)
+- absolutely leave system file permisions alone
+  - (no dreaded `sudo npm` permission errors)
+
+### Hello World
 
 ```bash
 node -e 'console.log("Hello, World!")'
 > Hello, World!
 ```
 
-A Simple Web Server
+### A Simple Web Server
 
 `server.js`:
 
@@ -42,7 +55,7 @@ http.createServer(app).listen(8080, function () {
 node server.js
 ```
 
-An Express App
+### An Express App
 
 ```bash
 mkdir my-server
@@ -60,7 +73,7 @@ var express = require('express');
 var app = express();
 
 app.use('/', function (req, res, next) {
-  res.end("Hello, World!");
+  res.end('Hello, World!');
 });
 
 module.exports = app;