fetch-rewrite
v1.2.0
Published
This small library will let you apply rewrite rules to fetch commands.
Downloads
3
Maintainers
Readme
Rewrite Fetch
This small library will let you apply rewrite rules to fetch commands.
This is useful for "fixing" other people's code (or perhaps for testing). My specific use case was to modify the response payloads for the Spotify app so that I could remove episodes and audiobooks by modifying the fetch responses.
Usage
TODO
- [x] Method matching
- [x] Deeper URL matching (i.e. on origin too)
- [x] Pattern match/regex support on URL match
- [x] Tests
- [ ] Actually include more documentation and examples