{"id":15013007,"url":"https://github.com/postmanlabs/postman-sandbox","last_synced_at":"2025-05-15T02:06:39.839Z","repository":{"id":38849603,"uuid":"75166275","full_name":"postmanlabs/postman-sandbox","owner":"postmanlabs","description":"Sandbox for Postman Scripts to run in Node.js or browser","archived":false,"fork":false,"pushed_at":"2025-05-02T22:19:52.000Z","size":7185,"stargazers_count":113,"open_issues_count":25,"forks_count":63,"subscribers_count":17,"default_branch":"develop","last_synced_at":"2025-05-09T10:55:50.124Z","etag":null,"topics":["contextify","postman","sandbox","vm"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/postmanlabs.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.yaml","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-11-30T08:19:26.000Z","updated_at":"2025-04-28T14:33:58.000Z","dependencies_parsed_at":"2023-12-18T12:47:15.177Z","dependency_job_id":"b7d7160f-d155-4a47-9b1b-2c7789307d0d","html_url":"https://github.com/postmanlabs/postman-sandbox","commit_stats":{"total_commits":1132,"total_committers":32,"mean_commits":35.375,"dds":0.7243816254416962,"last_synced_commit":"2759dd3e8a85dffba8a4499f9f82fffab9dae424"},"previous_names":[],"tags_count":138,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmanlabs%2Fpostman-sandbox","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmanlabs%2Fpostman-sandbox/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmanlabs%2Fpostman-sandbox/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/postmanlabs%2Fpostman-sandbox/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/postmanlabs","download_url":"https://codeload.github.com/postmanlabs/postman-sandbox/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254259370,"owners_count":22040819,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["contextify","postman","sandbox","vm"],"created_at":"2024-09-24T19:43:35.353Z","updated_at":"2025-05-15T02:06:39.819Z","avatar_url":"https://github.com/postmanlabs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Postman Sandbox [![Build Status](https://github.com/postmanlabs/postman-sandbox/actions/workflows/ci.yml/badge.svg)](https://github.com/postmanlabs/postman-sandbox/actions/workflows/ci.yml) [![codecov](https://codecov.io/gh/postmanlabs/postman-sandbox/branch/develop/graph/badge.svg)](https://codecov.io/gh/postmanlabs/postman-sandbox)\n\nModule that unifies execution of third-party JavaScript within Node.js and Browser.\n\n\u003e This module is part of Postman Runtime Core and is not intended for independent use.\n\u003e\n\u003e If you are looking to execute collections, you should bee using [Newman](https://github.com/postmanlabs/newman)\n\n## Usage\n```js\nvar Sandbox = require('postman-sandbox'),\n    context;\n\nSandbox.createContext(function (err, ctx) {\n    if (err) {\n        return console.error(err);\n    }\n\n    ctx.execute(`// code here`, {}, {}, function (err) {\n        if (err) {\n            return console.error(err);\n        }\n        console.log('executed')\n    });\n});\n```\n\n## Sandbox Environment\n\nThe following section outlines the API available inside sandbox scripts\n\n### pm\n\n- pm.test\n- pm.info\n- pm.vault\n- pm.globals\n- pm.cookies\n- pm.execution\n- pm.variables\n- pm.visualizer\n- pm.sendRequest\n- pm.environment\n- pm.iterationData\n- pm.collectionVariables\n\n#### pre-request script specials\n\n- pm.request\n\n#### test script specials\n\n- pm.request\n- pm.response\n\n## Events fired from Sandbox\n- pong\n- error\n- console\n- execution\n- execution.error\n- execution.error.*\n- execution.request.*\n- execution.result.*\n- execution.cookies.*\n- execution.skipRequest.*\n\n## Events responded to\n- ping\n- execute\n- execution.abort.*\n- execution.response.*\n- execution.cookies.*\n\n## Contributing\n\n### Debug in browser\n\nTo debug tests in Chrome's DevTools, start tests using `npm run test-browser -- --debug` and click `DEBUG`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostmanlabs%2Fpostman-sandbox","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpostmanlabs%2Fpostman-sandbox","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpostmanlabs%2Fpostman-sandbox/lists"}