Socket
Book a DemoInstallSign in
Socket

fetch-rewrite

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fetch-rewrite

This small library will let you apply rewrite rules to fetch commands.

latest
npmnpm
Version
1.2.0
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

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

  • Method matching
  • Deeper URL matching (i.e. on origin too)
  • Pattern match/regex support on URL match
  • Tests
  • Actually include more documentation and examples

Keywords

fetch

FAQs

Package last updated on 03 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts