butler-server
Serve files from any directory
Last updated 3 years ago by haukur .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install butler-server 
SYNC missed versions from official npm registry.

Butler

Package Version License

A static file server written in TypeScript.

Usage

From within any directory, simply run Butler in the terminal:

butler

A server will be launched on port localhost:8080, listing all directories and files in the current directory. Directories containing an index.html file will automatically render them instead of listing files. You can also provide a directory name as an argument when running butler in order to serve files from that directory (as opposed to the current working directory).

Advanced options

You may provide one or more options when running butler.

  • --port Specify the port from which to serve (default: 8080).
  • --base-path Specify the base URL from which to serve (default: /). pecifying a leading and trailing slash is optional but they will be added automatically. In addition, a redirect is set up in order to direct all requests that lack the base path to the correct URL.
  • --force-tls Only allow secure requests.

Install

You must install Butler globally:

yarn global add butler-server  # Or npm install -g butler-server

Note that the correct NPM package name is butler-server, not butler.

Current Tags

  • 0.11.0                                ...           latest (3 years ago)

21 Versions

  • 0.11.0                                ...           3 years ago
  • 0.10.0                                ...           3 years ago
  • 0.9.2                                ...           3 years ago
  • 0.9.1                                ...           3 years ago
  • 0.9.0                                ...           3 years ago
  • 0.8.0                                ...           3 years ago
  • 0.7.1                                ...           3 years ago
  • 0.7.0                                ...           3 years ago
  • 0.6.0                                ...           3 years ago
  • 0.5.2                                ...           4 years ago
  • 0.5.0                                ...           4 years ago
  • 0.4.3                                ...           4 years ago
  • 0.4.2                                ...           4 years ago
  • 0.4.1                                ...           4 years ago
  • 0.4.0                                ...           4 years ago
  • 0.3.0                                ...           4 years ago
  • 0.2.0                                ...           4 years ago
  • 0.1.3                                ...           4 years ago
  • 0.1.2                                ...           4 years ago
  • 0.1.1                                ...           4 years ago
  • 0.1.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 8
Dependencies (18)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |