-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
--interactive with --require #4661
Comments
What you are looking for should be Why doesn't that work? Because our current options parsing is a bunch of garbage @evanlucas Tried to make it use |
Here is what I tried last: $> cat test.js
console.log("OK")
a=1
exports.a=2
module.exports.a=3
$> NODE_PATH=. node -i -r test.js
> // nada
> a
ReferenceError: a is not defined |
Again, that doesn't currently work, but we know about it. :/ |
nice! |
This gives us the ability to preload when using the node repl. This can be useful for doing things like creating aliases. Fixes: nodejs#4661 PR-URL: nodejs#4696 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
Is there any way to make the repl console start with an included script?
Neither --interactive --eval nor --require worked here (v5.3.0)
The text was updated successfully, but these errors were encountered: