Proxyman
HomepageDownload
  • Overview
  • Changelog
  • License
  • License Manager
  • Raycast
  • Command-line
  • Security Compliance
  • Proxyman iOS
    • Proxyman for iOS
    • Map Local for iOS
    • Breakpoint for iOS
    • Tutorial for iOS
      • Map Local for iOS Tutorial
      • Breakpoint for iOS Tutorial
  • Debug on Devices
    • macOS
    • iOS Device
    • iOS Simulator
    • tvOS & watchOS
    • Android Device & Emulator
      • Automatic Script for Android Emulator
      • Sample Android Project
    • Firefox
    • Java VMs
    • Python
    • Ruby
    • NodeJS
    • Rust
    • Golang
    • React Native
    • Flutter
    • HTTP Clients
    • Docker
    • ElectronJS
    • NextJS (fetch)
  • Automatic Setup
    • Automatic Setup
    • Manual Setup
    • Troubleshooting
  • Atlantis
    • Atlantis for iOS
  • BASIC FEATURES
    • Proxyman Proxy Helper Tool
    • Request / Response Previewer
    • SSL Proxying
    • Bypass Proxy List
    • Import / Export
    • Content Filter
    • Multiple Tabs
    • Horizontal/Vertical/Window Layout
    • Copy as
    • Custom Previewer Tab
    • Custom Header Column
    • Regex (Regular Expression)
    • Filter JSON Response
    • Highlight by Color and Add Comment
    • Import / Export Settings
    • Multipart Form-Data Previewer
    • JSONPath
    • Customize Toolbar
    • Localization
    • Quick Preview
  • ADVANCED FEATURES
    • Repeat
    • Edit & Repeat
    • Compose new Request
    • No Caching
    • Breakpoint
    • Breakpoint Templates
    • Map Local (File)
    • Map Local (Directory)
    • Map Remote
    • External Proxy
    • Save Session
    • Protobuf
    • WebSocket
    • Clear Session
    • Block List
    • Allow List
    • Charles Proxy Converter
    • Custom Certificates
    • GraphQL
    • Network Conditions
    • Multiple Filters
    • Custom Filters
    • Publish to Gist
    • Reverse Proxy
    • Code Generator
    • Diff
    • Access Control
    • DNS Spoofing
    • SOCKS Proxy
    • Swagger OpenAPI
    • TLS Key Logging
  • Proxyman Windows
    • Install Certificate
    • WSL
  • Scripting
    • Scripting
    • async/await Request
    • Addons
    • Built-in JS Libraries
    • Write your own Addons
    • Snippet Code
    • Environment Variables
  • Troubleshooting
    • Proxyman does not work with VPN apps
    • My Remote Devices (iOS/Android) could not connect to Proxyman?
    • iOS 16 and iOS 17 issues
    • SSL Error from HTTPS Request/Response
    • I could not see any requests from my localhost server
    • I could not see any HTTP traffic from my NodeJS, Python, or Ruby scripts
    • *.local requests do not appear on Proxyman
    • I couldn't see any traffics on Proxyman
    • I couldn't see any requests from 3rd-party network libraries
    • [Breakpoint] Modify Request/Response by Raw Message
    • Could not change Proxyman App Icons
    • Lost data after updating Proxyman app?
    • Proxyman consumes too much RAM & unresponsive
Powered by GitBook
On this page
  • 1. What's it?
  • 2. Built-in Libraries
  • 3. How to import my own JS Library?
  • 4. Notes
  1. Scripting

Built-in JS Libraries

PreviousAddonsNextWrite your own Addons

Last updated 3 years ago

1. What's it?

Proxyman provides certain useful bundled JS Libraries that help you achieve some tasks easily

Library Location: ~/Library/Application\ Support/com.proxyman.NSProxy/addons/libs

2. Built-in Libraries

Name

Description

Source

base64.js

Contains basic Base64 Encode/Decode

-

atob.js

window.atob()

btoa.js

window.btoa()

hashes.js

Contains various hashing function: MD5, RIPEMP-160, SHA1, SHA256, SHA512, HMAC

lodash.js

Contains various text transformed functions

vkBeautify.js

pretty-print or minify text in XML, JSON, CSS and SQL formats.

crypto-js.min.js

JavaScript implementations of standard and secure cryptographic algorithms, e.g. DES, AES, Rabbit, ... (Version 3.3.0)

3. How to import my own JS Library?

  1. You can provide your own JS Library, but make sure you bundle all dependencies by using or to a single JS file.

  2. Make sure you export the func properly.

  3. Put the file at ~/Library/Application\ Support/com.proxyman.NSProxy/addons/libs/your-lib.js

  4. Importing the file by using

require('@libs/your-lib.js');

For instance,

const Hashes = require('@libs/hashes.js');
const { cssmin } = require('@libs/vkBeautify.js');
const Lodash = require('@libs/lodash.js');
const { atob } = require('@lib@atob.js')

You might check built-in libraries for reference at ~/Library/Application\ Support/com.proxyman.NSProxy/addons/libs/

4. Notes

Thanks to for creating Boop app that facilitates Proxyman's built-in add-ons.

Browserify
WebPack
Ivan Mathy
https://github.com/jsdom/abab
https://github.com/jsdom/abab
https://github.com/h2non/jshashes
https://lodash.com
https://github.com/kayhadrin/vkBeautify/
https://cryptojs.gitbook.io/docs/