npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

proxys

v2.3.0

Published

A easy way to share your pc network to mobile device, and capture network traffic to debug mobile app.

Downloads

9

Readme

#Proxys (Easy Http Proxy)

A easy way to share your PC network to mobile device, and capture network traffic to debug mobile app.

Proxys help developer easy to share their local pc network to mobile device, and supply with a convenient method to debug and capture the http request header information from you mobile.

Usage

It's depends on Node, and then just playing like this:

Installing npm (node package manager)

curl https://npmjs.org/install.sh | sh

Installing Proxys

npm install -g proxys

Using Proxys

proxys

Or

cd ROOT_DIR
npm start

and then follow the tips below:

1. Plant this pac URL in your auto-proxy config: http://192.168.1.111:9527/
2. Edit the ROOT/config.js file to add some proxy rules if you want.

Current Proxys Rules info:
 ==== Skipped Uri below ====
'http:\/\/[a-z0-9-]+\.weibo\.com/(.*)+',
'http:\/\/weibo\.com/(.*)+',

===== Track Logging ... =====

Add the proxy pac file address on your mobile network panel, and once more, enjoy it.

Add skip URL

Edit ROOT/config.js file, add uri to skipUrl array:

module.exports = {
 skipUrl : [ 
    	
		'http:\/\/[a-z0-9-]+\.bdimg\.com\/(.*)+',
		'http:\/\/m\.baidu\.com\/(.*)+',
		
	]
}

Notice:

  1. "skipUrl" means untrack url list;

  2. The "skipUrl" and "trackUrl" mutexes, if u config both of them, only skipUrl will effect.

Add track URL

Edit ROOT/config.js file, add uri to trackUrl array:

module.exports = {
	trackUrl : [ 
    	'http:\/\/m\.baidu\.com\/(.*)+',
	],
}

Notice: The uri in trackUrl list will be tracked and print log info.

Add block URL

Edit ROOT/config.js file, add url to blockUrl array:

module.exports = {
	blockUrl : [ 
		{ 
			target: 'http://music.baidu.com/static/js/abc.js',
			dest: '/home/enimo/static/js/abc.js'
		},
		{ 
			target: 'http://play.baidu.com/static/{*}',
			dest: '/home/enimo/static/'
		}
	]
}

Notice:

  1. The blockUrl.target url will be injected,and return the replaced resource which defined in blockUrl.dest;

  2. Both directory and single file are supported.

Additional info

  1. Not even 80 port, support any 1000+ port.
  2. Unsupport https protocol now.

Notes

Especially note for Mac OS X user:

Proxys' suggested partner HTTPScoop (http://www.tuffcode.com/download.html), It's one of your best matches.

Future

I'll keep polishing this app and keep adding new features. If you have any problems when using this engine, please feel free to drop me an issue or contact me:

  • Twitter: https://twitter.com/enimo
  • Weibo: http://weibo.com/enimo