Cross Platform Network Proxy Tools - bproxy

Updated on December 05, 2023 View Times: 6641

Share on Twitter

Command line tools

npm install bproxy -g

Npm pkg

https://www.npmjs.com/package/bproxy

MacOS Version Download

Windows Version Download

Preview

Home Page

https://www.duelpeak.com/pages/bproxy

Github

https://github.com/zobor/bproxy

Example Of bproxy.config.js

Download Music

const path = require('path');
const fs = require('fs');

module.exports = {
	"https": true,
	"rules": [
		{
			url: /\.(mp3|m4a)/,
			target: function({fetch, request, response}) {
        		fetch(request.url, request.params).pipe(response);
        		fetch(request.url, request.params).pipe(fs.createWriteStream(path.resolve(`${process.env.HOME || process.env.HOMEPATH}/Downloads/${Date.now()}.mp3`)));
			},
		}
	]
}

Download Video

const path = require('path');
const fs = require('fs');

module.exports = {
	"https": true,
	"rules": [
		{
			url: /\.(mp4|webm)/,
			target: function({fetch, request, response}) {
        		fetch(request.url, request.params).pipe(response);
        		fetch(request.url, request.params).pipe(fs.createWriteStream(path.resolve(`${process.env.HOME || process.env.HOMEPATH}/Downloads/${Date.now()}.mp4`)));
			},
		}
	]
}
Share on Twitter
Catogery:MacOS App