postmanlabs / Postman Sandbox
Licence: apache-2.0
Sandbox for Postman Scripts to run in Node.js or browser
Stars: ✭ 47
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Postman Sandbox
Eval5
A JavaScript interpreter written in TypeScript - Support ES5
Stars: ✭ 281 (+497.87%)
Mutual labels: sandbox, vm
Thrive
The main repository for the development of the evolution game Thrive.
Stars: ✭ 874 (+1759.57%)
Mutual labels: sandbox
Wakxy
Wakxy is a Wakfu packet sniffer (MITM). Written in C++/Qt with Javascript scripting support.
Stars: ✭ 12 (-74.47%)
Mutual labels: sandbox
Emofishes
Emofishes is a collection of proof of concepts that help improve, bypass or detect virtualized execution environments (focusing on the ones setup for malware analysis).
Stars: ✭ 11 (-76.6%)
Mutual labels: sandbox
Componentfixture
🛠️Interactive sandox playground for vue components
Stars: ✭ 44 (-6.38%)
Mutual labels: sandbox
Terraform
Share Terraform best practices and custom modules with the community
Stars: ✭ 39 (-17.02%)
Mutual labels: vm
Jellyvm
A VM written following the Linear Abstract Machine architecture
Stars: ✭ 21 (-55.32%)
Mutual labels: vm
Restdocs To Postman
Converts Spring REST Docs cURL snippets to Postman and Insomnia collections
Stars: ✭ 39 (-17.02%)
Mutual labels: postman
Compilebox
Compile and run user-submitted code in a docker based sandbox.
Stars: ✭ 951 (+1923.4%)
Mutual labels: sandbox
Postman Sandbox
Module that unifies execution of third-party JavaScript within Node.js and Browser.
This module is part of Postman Runtime Core and is not intended for independent use.
If you are looking to execute collections, you should bee using Newman
Usage
var Sandbox = require('postman-sandbox'),
context;
Sandbox.createContext(function (err, ctx) {
if (err) {
return console.error(err);
}
ctx.execute(`// code here`, {}, {}, function (err) {
if (err) {
return console.error(err);
}
console.log('executed')
});
});
Sandbox Environment
The following section outlines the API available inside sandbox scripts
pm
- pm.globals
- pm.environment
- pm.collectionVariables
- pm.test
pre-request script specials
- pm.request
test script specials
- pm.request
- pm.response
Events fired from Sandbox
- pong
- error
- console
- execution
- execution.error
- execution.error.*
- execution.request.*
- execution.result.*
- execution.cookies.*
Events responded to
- ping
- execute
- execution.abort.*
- execution.response.*
- execution.cookies.*
- execution.console.*
Contributing
Debug in browser
To debug tests in Chrome's DevTools, start tests using npm run test-browser -- --debug
and click DEBUG
.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].