Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jtblin/testatic
Setup a simple static site
https://github.com/jtblin/testatic
Last synced: 19 days ago
JSON representation
Setup a simple static site
- Host: GitHub
- URL: https://github.com/jtblin/testatic
- Owner: jtblin
- License: other
- Created: 2015-02-07T05:16:33.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-07T05:55:54.000Z (almost 10 years ago)
- Last Synced: 2024-10-28T09:07:01.381Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 113 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# testatic
Setup a static web server for testing with basic options.
# Installation
npm install --save[-dev] testatic
# Usage
```
var server = require('testatic')('./public', 8080);
server.close();
```## API
* `dir`: directory to serve static files from (default **./**)
* `port`: directory to serve static files from (default **8080**)# Contributing
Open issues in [github](https://github.com/jtblin/testatic/issues).
Pull requests welcome!# Author
Jerome Touffe-Blin, [@jtblin](https://twitter.com/jtblin), [About me](http://about.me/jtblin)
# License
testatic is copyright 2015 Jerome Touffe-Blin and contributors.
It is licensed under the BSD license. See the include LICENSE file for details.