[GH-ISSUE #889] Help - Is it possible to share a single script body between multiple Proxyman scripts? #886

Closed
opened 2026-03-03 19:22:42 +03:00 by kerem · 2 comments
Owner

Originally created by @crankygeek on GitHub (May 14, 2021).
Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/889

Originally assigned to: @NghiaTranUIT on GitHub.

Proxyman version? (Ex. Proxyman 1.4.3)

Version 2.25.0 (22500)

macOS Version? (Ex. mac 10.14)

MacBook Pro (16-inch, 2019) macOS 10.15.7

I have a script that I need to run with multiple endpoints with various Matching Rule criteria such as URL, Method, etc. The script body itself is the same regardless of the rules applied.

Is there a way to include an external file (.js, txt, whatever) as the script body on multiple Proxyman scripts? I tried saving it as a .js file and using the import function, but it doesn't appear to be executing the script.

I'm trying to create a suite of scripts that I can provide to my team that they can just toggle on and off as needed, rather than modifying the scripts directly.

Related, but separate, after adding 40 or so scripts, I'm really looking forward to folder organization in the Scripting tool (https://github.com/ProxymanApp/Proxyman/issues/739). I had a thought that perhaps adding other columns to the listing could be helpful. HTTP Method specifically comes to mind (I'm currently including it in the script title). I could also see a column for Response and Request checkboxes could be helpful, though I can see that might be a bigger lift.

Thanks as always!

  • Jack
Originally created by @crankygeek on GitHub (May 14, 2021). Original GitHub issue: https://github.com/ProxymanApp/Proxyman/issues/889 Originally assigned to: @NghiaTranUIT on GitHub. ### Proxyman version? (Ex. Proxyman 1.4.3) Version 2.25.0 (22500) ### macOS Version? (Ex. mac 10.14) MacBook Pro (16-inch, 2019) macOS 10.15.7 I have a script that I need to run with multiple endpoints with various Matching Rule criteria such as URL, Method, etc. The script body itself is the same regardless of the rules applied. Is there a way to include an external file (.js, txt, whatever) as the script body on multiple Proxyman scripts? I tried saving it as a .js file and using the import function, but it doesn't appear to be executing the script. I'm trying to create a suite of scripts that I can provide to my team that they can just toggle on and off as needed, rather than modifying the scripts directly. Related, but separate, after adding 40 or so scripts, I'm really looking forward to folder organization in the Scripting tool (https://github.com/ProxymanApp/Proxyman/issues/739). I had a thought that perhaps adding other columns to the listing could be helpful. HTTP Method specifically comes to mind (I'm currently including it in the script title). I could also see a column for Response and Request checkboxes could be helpful, though I can see that might be a bigger lift. Thanks as always! - Jack
kerem closed this issue 2026-03-03 19:22:43 +03:00
Author
Owner

@NghiaTranUIT commented on GitHub (May 15, 2021):

Hey @crankygeek it's possible to include an external JS file to multiple scripts by using Addons (https://docs.proxyman.io/scripting/write-your-own-addons). Basically, you can write your own addon and reuse it in different scripts as usual 👍

Regarding the Rule Organizer, we're still working on it. The progress is slow since it changes many places and the core logic of the app, but we promise to ship it when it's done 😄

<!-- gh-comment-id:841583557 --> @NghiaTranUIT commented on GitHub (May 15, 2021): Hey @crankygeek it's possible to include an external JS file to multiple scripts by using Addons (https://docs.proxyman.io/scripting/write-your-own-addons). Basically, you can write your own addon and reuse it in different scripts as usual 👍 Regarding the Rule Organizer, we're still working on it. The progress is slow since it changes many places and the core logic of the app, but we promise to ship it when it's done 😄
Author
Owner

@crankygeek commented on GitHub (Jun 10, 2021):

Got it. Thanks!

<!-- gh-comment-id:858766293 --> @crankygeek commented on GitHub (Jun 10, 2021): Got it. Thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/Proxyman#886
No description provided.