https://github.com/52cik/http-static
A simple static file http server.
https://github.com/52cik/http-static
Last synced: 2 months ago
JSON representation
A simple static file http server.
- Host: GitHub
- URL: https://github.com/52cik/http-static
- Owner: 52cik
- License: mit
- Created: 2016-09-05T17:46:37.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-09-05T02:20:03.000Z (over 7 years ago)
- Last Synced: 2025-02-03T18:57:31.426Z (4 months ago)
- Language: JavaScript
- Size: 12.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# http-static
> `cn:` 简单的静态文件服务器。
> `en:` A simple static file http server.[![Linux Build][travis-image]][travis-url]
[![Coverage Status][coveralls-image]][coveralls-url]
[![Dependencies][dependencies-image]][dependencies-url]
[![node][node-image]][node-url]
[![license MIT][license-image]][license-url]## 使用方法 (How to use it)
``` sh
$ npm install -g 52cik/http-static
`````` sh
$ http-static static_dir 8000
````cn:` 以 static_dir 为根目录,8000 为端口启动服务器。
`en:` With static_dir as the directory, 8000 for the port to start the server.[travis-url]: https://travis-ci.org/52cik/http-static
[travis-image]: https://img.shields.io/travis/52cik/http-static/master.svg?label=linux[coveralls-url]: https://coveralls.io/github/52cik/http-static?branch=master
[coveralls-image]: https://coveralls.io/repos/52cik/http-static/badge.svg?branch=master&service=github[license-url]: https://opensource.org/licenses/MIT
[license-image]: https://img.shields.io/badge/license-MIT-blue.svg[dependencies-url]: https://david-dm.org/52cik/http-static
[dependencies-image]: https://img.shields.io/david/52cik/http-static.svg?style=flat[node-url]: https://nodejs.org
[node-image]: https://img.shields.io/badge/node-%3E%3D%204.0.0-brightgreen.svg