network-overrides
Advanced tools
Weekly downloads
Readme
CLI and backend for the Network Overrides browser extension, allowing one to define sets of browser-side redirects (overrides) programmatically from the command line.
See the general documentation more info and quick start guide.
Format: network-overrides start-backend [--background]
Starts the shared overrides backend in port 8117
. In case the port is already occupied (probably the service is already running), it exits with code 2
.
Running it with the --background
flag will start it as a background (detached) process instead.
Format: network-overrides stop-backend
Stops the shared overrides backend, making it exit normally.
Format: network-overrides add <override-set-id> <overrides>
Adds (or updates) a list of overrides that belong to a specific set. Inspired by cURL, the overrides can be described in a couple of ways:
network-overrides add google-search '[{from:"https://www.google.com/search/(.*)",to:"http://localhost:3000/$1"}]'
@
. ex:network-overrides add google-search @config/overrides.json
See Override for more info on how to structure your overrides.
Format: network-overrides remove <override-set-id>
Removes the list of overrides that belong to a specific set. ex:
network-overrides remove google-search
Format: network-overrides list
Logs to the console the list of overrides per set currently registered in the shared backend.
Format: network-overrides wrap-command <command-to-run> <override-set-id> <overrides> [--ensure-backend]
Runs the provided command wrapped by (bound to) a set of overrides. It's a combination of several commands over the following steps:
--ensure-backend
flag, it starts the backend shared background process<override-set-id> <overrides>
), in a format similar to the add command.<command-to-run>
)<override-set-id>
)FAQs
CLI and backend for the Network Overrides browser extension
The npm package network-overrides receives a total of 549 weekly downloads. As such, network-overrides popularity was classified as not popular.
We found that network-overrides demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.