-
Notifications
You must be signed in to change notification settings - Fork 701
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
Cloudflare Workers REPL #1263
Comments
Adds a `--repl` flag to start an interactive REPL. Allows any other option to be passed alongside, and automatically loads bindings from `wrangler.toml` files too. Specifying a script is optional when `--repl` is enabled.
How's this? 🙂
Automatically loads scripts/bindings from |
amazing!!! is this available as an api? we can then do all our custom build stuff that we do |
Yep! import { Miniflare } from "miniflare";
const mf = new Miniflare(...);
mf.startREPL(); |
you're so awesome |
Potentially can have a rethink in the future once we know more clearly the repl story with the open source runtime. |
was this completed, or is this not going to be done? |
@threepointone sorry about that, I should've clarified before closing. This is something we're not going to do for now. We can definitely reevaluate that once miniflare is the default for local dev. |
Describe the solution
While it’s nice to use stackblitz etc for making a quick worker, it’s not great to have to define an http interface for input and out put. It would be nice to have a repl style interface for quickly running code.
The text was updated successfully, but these errors were encountered: