nokit-filter-proxy

nokit-filter-proxy

Usage no npm install needed!

<script type="module">
  import nokitFilterProxy from 'https://cdn.skypack.dev/nokit-filter-proxy';
</script>

README

示例一:

{
  "filters": {
    "^/": "nokit-filter-proxy"
  },
  "proxy": {
    "rules": {
      "^/jser": "https://jser.cc"
    }
  }
}

示例二:

不保留 URL 中的 /jser 前缀

{
  "filters": {
    "^/": "nokit-filter-proxy"
  },
  "proxy": {
    "rules": {
      "^/jser(.*)": "https://jser.cc"
    }
  }
}