whistle.urlcombo

1.0.1 • Public • Published

whistle.urlcombo

Auto version of Combo plugin for whistle.

Usage

Install whistle and this plugin:

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/jquery@3.2/dist/jquery.min.js,gh/twbs/bootstrap@3.3/dist/js/bootstrap.min.js

// becomes
https://cdn.jsdelivr.net/combine/gh/jquery/jquery@3.2/dist/jquery.min.js
https://cdn.jsdelivr.net/combine/gh/twbs/bootstrap@3.3/dist/js/bootstrap.min.js

Readme

Keywords

none

Package Sidebar

Install

npm i whistle.urlcombo

Weekly Downloads

8

Version

1.0.1

License

none

Unpacked Size

8.78 kB

Total Files

4

Last publish

Collaborators

  • dsrkafuu