Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.
/ pweb Public archive

Quickly proxy and modify websites, with built-in command-line usage.

License

Notifications You must be signed in to change notification settings

tianluanchen/pweb

Repository files navigation

Pweb

TypeScriptVersion NPM

Quickly proxy and modify websites, with built-in command-line usage.

🚧 Currently does not support proxying WebSocket.

English | 中文

Installation

npm i pweb

Command Line Usage

# Global installation
npm i pweb -g

# Listen 127.0.0.1:3000 and proxy htttps://www.example.com
pweb -a 127.0.0.1:3000 https://www.example.com

# Inject hook code for the proxied webpage, so all XHR requests will go through the server started by pweb
pweb --hook https://www.example.com

# Inject CSS and JS code for the proxied webpage
pweb --css "body{background:pink !important;}" --js "window.onload=()=>alert('Now the background is pink!')"  https://www.example.com

# Get more help
pweb --help

Using as a Library

Please refer to the usage examples in the example directory.

License

MIT © Ayouth

About

Quickly proxy and modify websites, with built-in command-line usage.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published