https://github.com/dranjan/targetfly
very simple Node.js webserver that supports TARring directories on the fly
https://github.com/dranjan/targetfly
Last synced: 11 months ago
JSON representation
very simple Node.js webserver that supports TARring directories on the fly
- Host: GitHub
- URL: https://github.com/dranjan/targetfly
- Owner: dranjan
- License: gpl-3.0
- Created: 2013-09-23T10:00:16.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2015-11-02T04:22:16.000Z (over 10 years ago)
- Last Synced: 2025-02-03T17:01:48.130Z (over 1 year ago)
- Language: JavaScript
- Size: 227 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Targetfly
This is a very simple Node.js web application mainly intended as a
download server. The only interesting feature is that it can serve
whole directories as TAR files that are generated on the fly.
## Installation
Install node.js and npm, then run `npm install` in the repository root.
## Usage
The simplest usage is
node path/to/targetfly/index.js
which will serve files from the current working directory on port 8080.
The most complicated usage is
node path/to/targetfly/index.js --port [PORT] \
--directory [DIRECTORY] \
[ --show-hidden ]
which chooses an arbitrary port and root directory. The last shown
option, `--show-hidden`, will allow the server to serve files whose
names begin with '.', which is disabled by default.