basic-node-server
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "basic-node-server", | ||
"version": "1.0.4", | ||
"description": "Simple node server for everyone.", | ||
"main": "index.js", | ||
"version": "1.0.5", | ||
"description": "Basic node server for everyone.", | ||
"main": "bns.js", | ||
"scripts": { | ||
"bns": "node index.js" | ||
"start": "node bns" | ||
}, | ||
@@ -18,2 +18,2 @@ "repository": { | ||
"license": "MIT" | ||
} | ||
} |
@@ -9,3 +9,3 @@ # basic-node-server | ||
``` | ||
npm run bns [port] | ||
node bns [port] | ||
``` | ||
@@ -16,4 +16,5 @@ | ||
For example, if you want to serve the current directory on port 8080, you would run: | ||
``` | ||
npm run bns 8080 | ||
node bns 8080 | ||
``` | ||
@@ -29,6 +30,6 @@ | ||
Then, to run it, run from your project directory: | ||
Then, you can run it from your project directory: | ||
``` | ||
node node_modules/basic-node-server/index.js [port] | ||
``` | ||
node node_modules/basic-node-server/bns [port] | ||
``` |
Sorry, the diff of this file is not supported yet
47333