All Projects → postmanlabs → Postman Sandbox

postmanlabs / Postman Sandbox

Licence: apache-2.0
Sandbox for Postman Scripts to run in Node.js or browser

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Postman Sandbox

SandboxJS
Safe eval runtime
Stars: ✭ 18 (-61.7%)
Mutual labels:  vm, sandbox
uvm
Universal Virtual Machine for Node and Browser
Stars: ✭ 29 (-38.3%)
Mutual labels:  vm, postman
Vm2
Advanced vm/sandbox for Node.js
Stars: ✭ 2,738 (+5725.53%)
Mutual labels:  sandbox, vm
Eval5
A JavaScript interpreter written in TypeScript - Support ES5
Stars: ✭ 281 (+497.87%)
Mutual labels:  sandbox, vm
Ivm
a tiny vm
Stars: ✭ 34 (-27.66%)
Mutual labels:  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
Ebcvm
EFI Byte Code Virtual Machine in userspace
Stars: ✭ 34 (-27.66%)
Mutual labels:  vm
Jellyvm
A VM written following the Linear Abstract Machine architecture
Stars: ✭ 21 (-55.32%)
Mutual labels:  vm
Postman Cn
Postman汉化中文版
Stars: ✭ 965 (+1953.19%)
Mutual labels:  postman
Enigma
An Erlang VM implementation in Rust
Stars: ✭ 877 (+1765.96%)
Mutual labels:  vm
Restdocs To Postman
Converts Spring REST Docs cURL snippets to Postman and Insomnia collections
Stars: ✭ 39 (-17.02%)
Mutual labels:  postman
Fiber
Distributed Computing for AI Made Simple
Stars: ✭ 866 (+1742.55%)
Mutual labels:  sandbox
Api tool postman
API开发利器:Postman
Stars: ✭ 31 (-34.04%)
Mutual labels:  postman
Ideas
Ideas for protecting C/C++
Stars: ✭ 37 (-21.28%)
Mutual labels:  vm
Compilebox
Compile and run user-submitted code in a docker based sandbox.
Stars: ✭ 951 (+1923.4%)
Mutual labels:  sandbox
Screeen
Observe user screen shot event in macOS.
Stars: ✭ 29 (-38.3%)
Mutual labels:  sandbox

Postman Sandbox Build Status codecov

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].