basic-node-server 1.0.12 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +7 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -8,7 +8,6 @@ If no path is given, or if the path ends with '/' or '\', it will serve the inde
8
8
 
9
9
  ```
10
10
  npm install basic-node-server
11
-
12
11
  ```
13
12
 
14
13
  ## Usage
@@ -16,7 +15,7 @@ npm install basic-node-server
16
15
  Then, you can run it from your project directory:
17
16
 
18
17
  ```
19
- npx bns [port]
18
+ npx bns [port] [404.page]
20
19
  ```
21
20
 
22
21
  The [port] argument is optional. If no port is given, it will default to 3000.
@@ -25,4 +24,10 @@ For example, if you want to serve the current directory on port 8080, you would
25
24
 
26
25
  ```
27
26
  npx bns 8080
27
+ ```
28
+
29
+ If you need to setup additional 404 page you can do so by:
30
+
31
+ ```
32
+ npx bns 8080 your404page.html
28
33
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "basic-node-server",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "Basic node server for everyone.",
5
5
  "main": "bns.js",
6
6
  "scripts": {