Make global variables available in the repl?
See original GitHub issueHi, is it possible to make global variables in a file run with janeway file.js
available in the REPL, similar to what https://www.npmjs.com/package/node-repl#example does?
And thanks for the awesome work!
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Global variable. - Replit
I am making a feedback form, and I have it set up so that in submission1.php, it will gather the variable from the...
Read more >`global.variable` not working? - Replit
Hello! I am trying to make a variable that can be available to all files in the dir without having to mass the...
Read more >Cannot access global variables in console after requiring local ...
Normally I can do this on repl.it - I run code, and then I can use that code in the console. If I...
Read more >Easy way: create a global vari... - Replit
Easy way: create a global variable and change it whenever you need to: https://repl.it/@timmy_i_chen/flask-global-variable-demo Downsides: It will reset ...
Read more >Where do you create a global v... - Replit
Can someone explain global variables? ... how does global variables work i tried and it doesn't seem to work. 4 years ago ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@joelmukuthu Doing
janeway --evaluate file.js
will now do what you want 😃You can also add it to your config file (see the readme) so it’ll do this by default.
Your suggestion sounds like it would work! I think janeway would be a cool tool for creating interactive demos, but in most cases one needs to set up the demo environment hence this feature request. Let me know if I can help!