An open API service indexing awesome lists of open source software.

https://github.com/dsrkafuu/whistle-urlcombo

HTTP URL version of Combo plugin for Whistle.
https://github.com/dsrkafuu/whistle-urlcombo

cdn combo plugin url whistle whistle-plugin

Last synced: 3 months ago
JSON representation

HTTP URL version of Combo plugin for Whistle.

Awesome Lists containing this project

README

        

# whistle.urlcombo

Auto version of Combo plugin for whistle.

## Usage

Install whistle and this plugin:

```bash
npm i -g whistle.urlcombo
```

Use in whistle config:

```
[matcher] urlcombo://[delimiter]:[seperator]
```

## Examples

### Nginx

```
/assets.alicdn.com/g/\?\?.*/ urlcombo://??:,
```

Rule above will apply to requests like:

```
https://assets.alicdn.com/g/??lazada/static/0.0.5/react-full-16-8.js,next/next/1.13.9/next.min.js

// becomes
https://assets.alicdn.com/g/lazada/static/0.0.5/react-full-16-8.js
https://assets.alicdn.com/g/next/next/1.13.9/next.min.js
```

### jsDelivr

```
/cdn.jsdelivr.net/combine/ urlcombo://combine:,
```

Rule above will apply to requests like:

```
https://cdn.jsdelivr.net/combine/gh/jquery/[email protected]/dist/jquery.min.js,gh/twbs/[email protected]/dist/js/bootstrap.min.js

// becomes
https://cdn.jsdelivr.net/combine/gh/jquery/[email protected]/dist/jquery.min.js
https://cdn.jsdelivr.net/combine/gh/twbs/[email protected]/dist/js/bootstrap.min.js
```