Whistle Packages

whistle.data-extractor

whistle插件,可以用来从匹配到的pattern提取数据,替换到upstream指定地址获取到的模板中。 配置方式: ``` pattern data-extractor://{"upstream": "http://localhost:8080", extractRegex: ["<script>\\s*const\\s+data\\s*=([^<]+)"]} ```

1.0.3 • Published 3 years ago

whistle.xxtpl

Respond with json/jsonp according to the callback parameter

1.0.1 • Published 4 years ago