Socket
Book a DemoInstallSign in
Socket

donny

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

donny

simple static HTTP server for development

0.3.0
latest
Source
npmnpm
Version published
Weekly downloads
11
-26.67%
Maintainers
1
Weekly downloads
 
Created
Source

donny

npm

as a surfer he explored the beaches of Southern California, from La Jolla to Leo Carrillo and up to Pismo

goodbye, donny

donny serves a directory of files via HTTP. That's it. It works similarly to python3 -m http.server or ruby -run -e httpd and is not intended to be used in production. Use it in development only.

Usage via CLI

Simply run

donny

to serve the current directory on port 8080. You can also run:

donny -p 9000 -b 127.0.0.1 dist

to bind to port 9000 for bind address 127.0.0.1 and serve the dist folder.

Usage as a library

let donny = require("donny");

donny({
    port: "9000",
    bind: "127.0.0.1",
    webroot: "dist"
}).then(() => {
    console.error("Serving 'dist' on port 9000");
});

Comparison to other solutions

  • It has no dependencies except minimist.
  • In comparison to servedir, it serves the index.html when asked for a directory instead of listing the contents.

License

donny is licensed under the Apache 2.0 License.

Keywords

development

FAQs

Package last updated on 15 Feb 2022

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.