Built-in JS Libraries
List of built-in JS libraries that you can use the Script
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
From Proxyman macOS 6.10.0 or later, you can use the native `npm install` to install your 3rd-party libraries. Refer Use npm installdocumentation.
2. Built-in Libraries
base64.js
Contains basic Base64 Encode/Decode
-
hashes.js
Contains various hashing function: MD5, RIPEMP-160, SHA1, SHA256, SHA512, HMAC
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?
You can provide your own JS Library, but make sure you bundle all dependencies by using Browserify or WebPack to a single JS file.
Make sure you export the func properly.
Put the file at ~/Library/Application\ Support/com.proxyman.NSProxy/addons/libs/your-lib.js
Importing the file by using
For instance,
You might check built-in libraries for reference at ~/Library/Application\ Support/com.proxyman.NSProxy/addons/libs/
4. Notes
Thanks to Ivan Mathy for creating Boop app that facilitates Proxyman's built-in add-ons.
Last updated
Was this helpful?