New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

flyswatter

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flyswatter

self-signing static file server + dev proxy

latest
Source
npmnpm
Version
2.2.0
Version published
Maintainers
1
Created
Source

flyswatter npm version

Simple static file server built on express.

cli usage

Install globally to run flyswatter and serve static files from anywhere.

$ flyswatter --https=false --port=9300 --path=./docs

programatic usage

const flyswatter = require('flyswatter');
flyswatter({https: false, path: './docs'}).then(server => {
    server.listen(9300, callback);
});

*note the port config option must be provided explicitly to server.listen

config

parameterdefault
httpstrue
port3000
path./

FAQs

Package last updated on 29 Jan 2020

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