📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP

asdf

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asdf

tiny static web server that you can launch instantly in any directory (inspired by https://github.com/ddfreyne/adsf/)

1.2.3
latest
Version published
Maintainers
1
Created

A tiny static web server

Install

$ npm i -g asdf

Usage

** ONLY FOR DEVELOPMENT **

assume you have a static file dir : /home/alsotang/d3js

$ 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.

  Usage: asdf [options]

  Options:

    -h, --help         output usage information
    -V, --version      output the version number
    -p, --port <port>  which port to use, default is 5000
    -H, --host <host>  which address to listen on, default is 127.0.0.1
    -d, --dir <dir>    which dir to serve, default is dir where you call `adsf`

License

MIT

FAQs

Package last updated on 09 Oct 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts