alan
/
sfu
1
Fork 0

switch to executable sfu.js

This commit is contained in:
Alan Faubert 2020-11-06 07:48:50 -05:00
parent c6fe04c6f0
commit 8bd780e97e
3 changed files with 4 additions and 3 deletions

View File

@ -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
View File

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

2
sfu.js Normal file → Executable file
View File

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