You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

public

Package Overview
Dependencies
1
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

public

Run http server hosting static files with specified public dir & port


Version published
Maintainers
1
Created

Readme

Source

public.js

Run static file hosting server with specified public dir & port. Support a "direcotry index" like Apache httpd.

Apologies for module name

The name of this module is "public", but it is not recommended to use for "public". It is for development server on the local computer. Do not use on the public network!

Usage

# install
npm install -g public

# start server 
public
Public.js server running with "/path/to/./" on port 3000

# start server with option
public test 3030
Public.js server running with "/path/to/test" on port 3030

FAQs

Package last updated on 22 Jul 2019

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc