-
Notifications
You must be signed in to change notification settings - Fork 492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Experimental stateless JavaScript SDK #313
Conversation
|
24a5251
to
95f514a
Compare
7115eff
to
a81e71e
Compare
2f6ab3a
to
e022ce5
Compare
…lent for the stateless SDK
We closed this PR because our new SDK that is in beta incorporates most stateless ideas. |
Experimental stateless JavaScript SDK for E2B
The stateless version of our SDK allows you to spin up a sandbox from a client without managing the sandbox lifecycle on the client. The sandbox stays stateful though.
Installation
Usage
There are three methods on
stateless
module:create
- creates a sandbox for a specified time inms
, returnsid
of the sandbox, you can specify template or the sandbox will be created with thebase
templateexec
- executes the command in specified sandboxdownloadFile
- downloads a file from the sandbox as a byte arrayuploadFile
- uploads a file to a sandboxkill
- destroys the sandbox immediately