Browse Source

switch to executable sfs.js

master
Alan Faubert 9 months ago
parent
commit
8efcd4686b
  1. 4
      README.md
  2. 1
      sfs
  3. 2
      sfs.js

4
README.md

@ -6,12 +6,12 @@ Extremely minimal static file server and indexer. HTTP-only. Bring your own reve
## Installation
Clone. Install npm dependencies. Optionally symlink to `sfs` from somewhere in your `PATH`.
Clone. Install npm dependencies. Optionally symlink to `sfs.js` from somewhere in your `PATH`.
## Usage
```
sfs <port> [host]
sfs.js <port> [host]
```
Starts a server on the given `port` for the current working directory. Binds to localhost only unless `host` is specified.

1
sfs

@ -1 +0,0 @@
node "$(readlink -e "$0")".js "$@"

2
sfs.js

@ -1,3 +1,5 @@
#!/usr/bin/env node
'use strict';
const fs = require('fs');

Loading…
Cancel
Save