Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nikandlv/postman-patcher
Allows postman to render javascript in preview
https://github.com/nikandlv/postman-patcher
postman postman-client
Last synced: about 2 months ago
JSON representation
Allows postman to render javascript in preview
- Host: GitHub
- URL: https://github.com/nikandlv/postman-patcher
- Owner: nikandlv
- Created: 2019-08-17T07:37:10.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-16T21:57:15.000Z (over 5 years ago)
- Last Synced: 2024-08-01T19:57:00.881Z (5 months ago)
- Topics: postman, postman-client
- Language: Python
- Size: 117 KB
- Stars: 40
- Watchers: 2
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Postman patcher
> Postman does not allow you to render javascript in your response previews, And thats for a good reason. they limit the scripts for security
But what if you need to run your `react`, `vue` or any other javascript scripts. Saddly postman does not give you an option to allow or disallow javascript manually, So thats why this project exists
## Requirements
* Postman ^7.6.0
* Python3
* Mac or Linux versions## Older versions
You can find the patcher for older versions of postman in their own release branch
## Patch it
```console
[email protected]:~$ cd Postman
[email protected]:~/Postman$ git clone https://github.com/nikandlv/postman-patcher.git
[email protected]:~/Postman$ mv postman-patcher/* .
[email protected]:~/Postman$ python3 patch.py
Patching RequesterModalContainer.js
-- loading needle for RequesterModalContainer.js
-- loading patch for RequesterModalContainer.js
Backing up RequesterModalContainer.js -> RequesterModalContainer.js.back
* applying patch on RequesterModalContainer.js
Patching vendor-shared.js
-- loading needle for vendor-shared.js
-- loading patch for vendor-shared.js
-- loading needle 1 for vendor-shared.js
-- loading patch 1 for vendor-shared.js
Backing up vendor-shared.js -> vendor-shared.js.back
* applying patch on vendor-shared.js
* applying patch 1 on vendor-shared.js
[email protected]:~/Postman$
```## Enable it
`File > Settings > USER INTERFACE > [Disable Sandbox] Allow javascript in previews (requires restart)`
## Restart and enjoy
## Images
![Settings](./settings.png)
#### Before
![Before](./before.png)
#### After
![After](./after.png)
## Restore
```console
[email protected]:~/Postman$ python3 restore.py
* Restoring RequesterModalContainer.js
* Restored RequesterModalContainer.js
* Restoring vendor-shared.js
* Restored vendor-shared.js
[email protected]:~/Postman$
```# Important Note
This project is just a feature that we all need but they havent implemented this yet. theres also an issue from may that havent got anywhere
#### Postman updates itself so you probably need to patch again after an update
## Todo
- add windows support