Socket
Book a DemoInstallSign in
Socket

httpstatic

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

httpstatic

HTTP Static ===========

latest
npmnpm
Version
1.1.0
Version published
Maintainers
2
Created
Source

HTTP Static

Simple HTTP static server with caching and multi-domain applications from a single server. Minimal resource usage.
Static folder files are cached and served directly, for multiple domains.

Examples

// serve static memory cached pages from a.com and b.com
//  ./static/a.com/index.html
//  ./static/b.com/index.html

// Run script
handler.js in current directory is used to handle requests
$ port=81 nocache=1 node httpstatic.js  # Optional port, nocache

// include
// use alternate request handling
require('./httpstatic.js')(function(r, s){
  s.write('processing..');
  s.end(); // dont serve the page
});

FAQs

Package last updated on 18 Feb 2018

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.