Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/popomore/combo2
A simple assets combo server.
https://github.com/popomore/combo2
Last synced: about 2 months ago
JSON representation
A simple assets combo server.
- Host: GitHub
- URL: https://github.com/popomore/combo2
- Owner: popomore
- Created: 2013-11-14T11:41:01.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-11-14T11:41:53.000Z (about 11 years ago)
- Last Synced: 2024-04-14T09:24:43.351Z (9 months ago)
- Language: JavaScript
- Size: 97.7 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Combo2
A simple assets combo server.
---
## Feature
1. 支持单文件访问
1. 支持 combo 访问,combo 的格式为(/??a.js,b.js)
1. 支持远程代理,如果本地不存在会去远程的地址找
1. 支持缓存,如果从远程获取的文件会缓存到本地## Install
```
$ npm install combo2 -g
```## Usage
启动服务
```
$ cd path/to/directory
$ combo
```指定根目录,可在任意目录执行命令
```
$ combo -d path/to/directory
```代理远程文件,默认开启缓存
```
$ combo -r http://a.alipayobjects.com
```## Options
- `-v, --verbose` 显示访问日志
- `-p, --port [port]` 指定服务器端口
- `-d, --directory [directory]` 指定根目录
- `-r, --remote [remote]` 指定远程地址,如果本地不存在会去远程找## Lisence
MIT