🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

small-static-server

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

small-static-server

a small static file server with no dependencies

latest
Source
npmnpm
Version
1.0.3
Version published
Weekly downloads
13
333.33%
Maintainers
1
Weekly downloads
 
Created
Source

smallserver

GitHub | npm | donate | @craigbuckler | craigbuckler.com

A small and fast cross-platform Node.js static file server with no dependencies. The directory default is index.html and correct MIME types are used.

Ideal for serving client-side code on a development machine, but not optimised for production servers (no compression, caching, security, etc.)

Usage

Install globally:

npm i small-static-server -g

Launch using ss or smallserver to serve files from the current root directory, e.g. http://localhost:8888/

To quit, press Ctrl|Cmd + C.

Command line options

smallserver [port] [dir]

where:

  • [port] is an optional HTTP port (8888 by default)
  • [dir] is an optional absolute or relative root file directory (the current directory by default)

Possible future features

  • directory file list and navigation
  • proxy to other servers

Version history

v1.0.3, 22 December 2020

  • MIME support for .mjs and .cjs

v1.0.2, 20 August 2020

  • disabled caching on all files
  • MIME support for manifest

v1.0.1, 29 May 2020

  • MIME support for XHTML files

v1.0.0, 3 August 2019

  • initial release

Keywords

static

FAQs

Package last updated on 22 Dec 2020

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