New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

minimal-http-server

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

minimal-http-server

node minimal-http-server just works as expected, good for built-in something

  • 0.9.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

minimal-http-server

node minimal-http-server just works as expected, good for built-in something

Usage

import { server } from "./server.js";

const dir = "./www";
const port = 19999;
const serverUp = () => {
    console.log("server up " + port);
};

server(dir)(port)(serverUp);

To take advantage of ES6 Module(ESM),

recommend to use

https://www.npmjs.com/package/esm

or simply copy&paste the function to your projcet from the source-code :

https://github.com/kenokabe/minimal-http-server/blob/master/server.js

MIT License

Keywords

FAQs

Package last updated on 11 Aug 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

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc