Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alsotang/asdf
tiny static web server that you can launch instantly in any directory (inspired by https://github.com/ddfreyne/adsf/)
https://github.com/alsotang/asdf
Last synced: 2 months ago
JSON representation
tiny static web server that you can launch instantly in any directory (inspired by https://github.com/ddfreyne/adsf/)
- Host: GitHub
- URL: https://github.com/alsotang/asdf
- Owner: alsotang
- Created: 2014-10-12T09:06:34.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2023-10-09T12:44:07.000Z (about 1 year ago)
- Last Synced: 2024-09-19T08:09:11.178Z (4 months ago)
- Language: JavaScript
- Size: 22.5 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## A tiny static web server
## Install
`$ npm i -g asdf`
## Usage
** ONLY FOR DEVELOPMENT **
assume you have a static file dir : `/home/alsotang/d3js`
```bash
$ cd /home/alsotang/d3js
$ asdf
Listening on http://127.0.0.1:5000 (directory: /home/alsotang/d3js)
```then you can visit `http://127.0.0.1:5000` from browser.
```bash
Usage: asdf [options]Options:
-h, --help output usage information
-V, --version output the version number
-p, --port which port to use, default is 5000
-H, --host which address to listen on, default is 127.0.0.1
-d, --dir which dir to serve, default is dir where you call `adsf`
```## License
MIT