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.
- Host: GitHub
- URL: https://github.com/dsrkafuu/whistle-urlcombo
- Owner: dsrkafuu
- Created: 2022-09-29T01:57:26.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-20T17:46:22.000Z (almost 2 years ago)
- Last Synced: 2025-01-16T11:56:16.148Z (5 months ago)
- Topics: cdn, combo, plugin, url, whistle, whistle-plugin
- Language: TypeScript
- Homepage:
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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
```