8000 Defining an empty variable name makes a module inaccessible · Issue #21 · victorb/trymodule · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Defining an empty variable name makes a module inaccessible #21
Open
@shockey

Description

@shockey

Example:

→ trymodule js-yaml=
Gonna start a REPL with packages installed and loaded for you
Couldn't find 'js-yaml' locally, gonna download it now
js-yaml@3.6.1 .trymodule/node_modules/js-yaml
├── esprima@2.7.2
└── argparse@1.0.7 (sprintf-js@1.0.3)
Package 'js-yaml' was loaded and assigned to '' in the current scope
REPL started...
>

This was a typo on my part, and strictly speaking, it isn't a bug... but it definitely would have been a nice user experience for trymodule to have picked up on my mistake and defaulted to the module's name.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0