Name: postman-sandbox
Owner: Postman
Description: Sandbox for Postman Scripts to run in NodeJS or Chrome
Created: 2016-11-30 08:19:26.0
Updated: 2018-05-24 15:33:29.0
Pushed: 2018-05-24 15:33:31.0
Homepage: null
Size: 643
Language: JavaScript
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Module that unifies execution of third-party JavaScript within Node VM and Browser iFrame.
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
Sandbox = require('postman-sandbox'),
context;
box.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')
});
The following section outlines the API available inside sandbox scripts