New: Introducing PHP and Composer Support.Read the Announcement
Socket
Book a DemoInstallSign in
Socket

servedir

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

servedir

Creates a simple web server for a directory

Source
npmnpm
Version
0.1.5
Version published
Weekly downloads
248
8.3%
Maintainers
0
Weekly downloads
 
Created
Source

servedir

servedir is a simple Node web server for offline development and testing: running servedir from a directory will create a quick local web server. servedir is useful for developing scripts that require a standard web environment and can't use the file:// protocol.

The annotated source code is included in the docs/ folder.

Installation

Check out a working copy of the source code with Git, or install servedir via npm. The latter will also install servedir into the system's bin path.

$ git clone git://github.com/rem/servedir.git
$ npm install servedir

Alternatively, servedir can be run directly from the repository using Node:

$ node servedir.js

Usage

servedir [path] [port]

  • path - The location to serve files and directories from. Defaults to the current working directory.
  • port - The port number. Default to 8000.

Example

$ servedir ~/Documents/example 8001
$ servedir ~/Documents/example
$ servedir 8001
$ servedir

Contributors

Keywords

development

FAQs

Package last updated on 05 Feb 2011

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