Skip to content

-r / --require should work in interactive. #2892

@jamen

Description

@jamen

In node, there is a -r / --require flag. When specified, it requires a module for the script being ran. An example would be node --require bco myScript.js, this would require the bco module and run myScript.js with it required. All it really does is make your scripts look more nice.

What would be nice is if -r / --require would work in interactive mode. Such as node --require bco. Right now this currently doesn't work.

This may be repl's job, but I'm not really sure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    replIssues and PRs related to the REPL subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions