postman-sandbox:邮递员脚本的沙盒,可在Node.js或浏览器中运行

时间:2021-04-27 21:02:06
【文件属性】:
文件名称:postman-sandbox:邮递员脚本的沙盒,可在Node.js或浏览器中运行
文件大小:262KB
文件格式:ZIP
更新时间:2021-04-27 21:02:06
vm sandbox postman contextify JavaScript 邮差沙箱 在Node.js和浏览器中统一执行第三方JavaScript的模块。 该模块是Postman Runtime Core的一部分,不能独立使用。 如果您要执行收集,则应该使用 用法 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 ( e

网友评论