git clone [email protected]:my8bird/nodejs-sandbox.git
cd nodejs-sandbox
npm link
var sandboxer = require("nodejs-sandbox");
var sandbox = new sandbox.Sandbox();
sandbox.runSandboxed({code: 'console.log("fubar");'});
// To detect phases
sandbox.on('start', function() {console.log('start'); });
sandbox.on('finish', function() {console.log('finish'); });
@see _example.js for running code.