Comparing version 1.1.0 to 1.1.3
var express = require('express'); | ||
var server = express(); | ||
var path = require('path'); | ||
@@ -19,4 +20,4 @@ var procressDir = process.cwd(); | ||
var startServer = function (port, dir) { | ||
dir = dir || procressDir; | ||
port = port !== void 0 ? port : 5000; | ||
dir = dir ? path.join(procressDir, dir) : procressDir; | ||
port = port || 5000; | ||
@@ -23,0 +24,0 @@ server.use(express.static(dir)); |
{ | ||
"name": "asdf", | ||
"version": "1.1.0", | ||
"version": "1.1.3", | ||
"description": "tiny static web server that you can launch instantly in any directory (inspired by https://github.com/ddfreyne/adsf/) ", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -20,4 +20,15 @@ ## A tiny static web server | ||
```bash | ||
Usage: asdf [options] | ||
Options: | ||
-h, --help output usage information | ||
-V, --version output the version number | ||
-p, --port <port> which port to use, default is 5000 | ||
-d, --dir <dir> which dir to serve, default is which dir you call `adsf` | ||
``` | ||
## license | ||
MIT |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2555
22
34