Node package manager
Emit new event with the latest count of downloads for an npm package. See the documentation.
Emit new event when a new version of an npm package is published. See the documentation
import 'dotenv/config';
import { Sandbox } from '@e2b/code-interpreter';
export default defineComponent({
props: {
e2b: {
type: "app",
app: "e2b",
}
},
async run({steps, $}) {
const sbx = await Sandbox.create({
apiKey: this.e2b.$auth.api_key
}); // By default the sandbox is alive for 5 minutes
return await sbx.runCode('print("hello world")'); // Execute Python inside the sandbox
},
})