homeserver

1.0.8 • Public • Published

homeServer

homeServer is a command-line webserver just like python -m SimpleHTTPServer 3000

You Got homeserver!

homeserver is a command-line webserver just like python -m SimpleHTTPServer 3000

Think python -m SimpleHTTPServer 3000, and accepts file uploads (very safely, see below).

Installation

npm install -g homeserver

Usage

homeserver

Defaults to 3000 and the current directory

example:

cd ~/Downloads
homeserver

Now you can watch movies and other files in your web browser by localhost:3000 in your Local Area Network.

Receiving Files

Files will NOT be overwritten. Files will be received to the filename they were posted as.

cd /tmp
homeserver

cd ~/
echo 'Hello Test World!' > hello-test.txt
curl http://localhost:3000/hello.txt \
  -X POST \
  --data-binary @hello-test.txt

cat /tmp/hello.txt
> Hello Test World!

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i homeserver

    Weekly Downloads

    0

    Version

    1.0.8

    License

    ISC

    Last publish

    Collaborators

    • hantianxiang