New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@nodenv/nodenv-aliases

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nodenv/nodenv-aliases

Create aliases for nodenv Node versions

  • 2.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

nodenv-aliases

Build Status

Aliases for nodenv Node versions

Invoke nodenv alias <name> <version> to make a symbolic link from <name> to <version> in the nodenv versions directory, effectively creating an alias. The cool part is that if you pass in a major or major.minor release as the name, you can give --auto to link to the latest installed minor or patch level (respectively). For example, nodenv alias 4.4 --auto will automatically create an alias from 4.4 to 4.4.7 (or to whatever is the most recent version you have installed). Similarly, nodenv alias 6 --auto will automatically create an alias from 6 to 6.10.3 (or to whatever is the most recent version you have installed).

Plus, if you're using node-build, nodenv install major.minor.patch automatically invokes nodenv alias major --auto and nodenv alias major.minor --auto, so you'll always have up to date aliases.

Installation

git clone https://github.com/nodenv/nodenv-aliases.git $(nodenv root)/plugins/nodenv-aliases

Usage

Create a major and major.minor alias for each installed major and minor release:

nodenv alias --auto

Create a major alias for the highest major release of, say 6:

nodenv alias 6 --auto

Create a major.minor alias for the highest minor release of, say 0.8:

nodenv alias 0.8 --auto

Create a major.minor.patch-pre alias for the highest prerelease of, say 8:

nodenv alias 8.0.0-rc --auto

Create a named alias for a specific release:

nodenv alias boron 6

Remove an alias:

nodenv unalias <alias-name>

or

nodenv alias <alias-name> --remove

Credits

Forked from Tim Pope's rbenv-aliases by Jason Karns and modified for nodenv.

FAQs

Package last updated on 30 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc