@coco-platform/static-server
lite static server.
Last updated 2 years ago by bornkiller .
MIT · Original npm · Tarball · package.json
$ cnpm install @coco-platform/static-server 
SYNC missed versions from official npm registry.

@coco-platform/static-server

lite static server.

Options

/**
 * @description - start static server, validate options before call
 *
 * @param {object} options
 * @param {string} options.root - the static root directory, prefer absolute path
 * @param {number} options.port - listen port
 * @param {string} options.subject - mark project prefix path, useful when treat as sub-project
 * @param {string} options.silent - ignore request path logs
 *
 * @return {object} - HTTP server instance
 */

Usage

const server = require('@coco-platform/static-server');

server.bootstrap({
  root,
  port,
  subject,
  proxy
});

License

MIT

Current Tags

  • 0.4.4                                ...           latest (2 years ago)

8 Versions

  • 0.4.4                                ...           2 years ago
  • 0.4.3                                ...           2 years ago
  • 0.4.2                                ...           2 years ago
  • 0.4.1                                ...           2 years ago
  • 0.4.0                                ...           2 years ago
  • 0.3.5                                ...           2 years ago
  • 0.3.4                                ...           3 years ago
  • 0.3.3                                ...           3 years ago
Maintainers (2)
Downloads
Today 0
This Week 9
This Month 9
Last Day 1
Last Week 1
Last Month 12
Dependencies (8)
Dev Dependencies (0)
None

Copyright 2014 - 2016 © taobao.org |