Skip to content

Make https://nvm.sh/ return the install script #3814

@NotLeonid

Description

@NotLeonid

I was wondering is it is possible to make the default webpage on nvm.sh/ return the install script itself?
Every time I'm working on a fresh Linux installation, I always just want to be able to type something like
curl -sSL https://nvm.sh/ | bash
or
curl -o- https://nvm.sh/install | bash,
because otherwise I just type nvm.sh in my browser and then grab the link from the GitHub page.
Having it directly and easily accessible from such URL would be far more convenient.

I am also pretty sure that there is a way for webservers to detect requests coming from user agents like curl or wget, so maybe only returning the install script when these user agents are detected be a better way to implement it, in case if there are any inconveniences.

Edit: install.nvm.sh? A redirect to the GitHub link?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions