Browse Source

switch to executable sfu.js

master
Alan Faubert 6 months ago
parent
commit
8bd780e97e
  1. 4
      README.md
  2. 1
      sfu
  3. 2
      sfu.js

4
README.md

@ -6,12 +6,12 @@ Extremely minimal HTML form file uploader. HTTP-only. Bring your own reverse pro
## Installation
Clone. Install npm dependencies. Optionally symlink to `sfu` from somewhere in your `PATH`.
Clone. Install npm dependencies. Optionally symlink to `sfu.js` from somewhere in your `PATH`.
## Usage
```
sfu <port> [host]
sfu.js <port> [host]
```
Starts a server on the given `port`. Binds to localhost only unless `host` is specified.

1
sfu

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

2
sfu.js

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

Loading…
Cancel
Save