Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/popomore/connect-combo
connect middleware for assets combo
https://github.com/popomore/connect-combo
Last synced: 2 months ago
JSON representation
connect middleware for assets combo
- Host: GitHub
- URL: https://github.com/popomore/connect-combo
- Owner: popomore
- Created: 2013-10-28T15:45:06.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2016-06-29T09:12:18.000Z (over 8 years ago)
- Last Synced: 2024-11-01T09:33:57.314Z (2 months ago)
- Language: JavaScript
- Size: 269 KB
- Stars: 16
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
Awesome Lists containing this project
README
# connect-combo
Connect middleware for assets combo, resolve url like `http://127.0.0.1??a.js,b.js`.
[![Build Status](https://travis-ci.org/popomore/connect-combo.png?branch=master)](https://travis-ci.org/popomore/connect-combo)
[![Coverage Status](https://coveralls.io/repos/popomore/connect-combo/badge.png?branch=master)](https://coveralls.io/r/popomore/connect-combo?branch=master)---
## Install
```
$ npm install connect-combo -g
```## Usage
```
var app = connect()
.use(combo())
.listen(3000);
```See [example](https://github.com/popomore/connect-combo/blob/master/examples/)
## Option
- `directory` specify local directory base, default `process.cwd()`.
- `proxy` specify remote server, default `false`.
- `cache` cache file from remote server, default `false`.
- `log` show log on terminal, default `false`.
- `beforeProxy` handle request before send to proxy, default `null`.
## License
MIT