Skip to main content

Automagically use the correct version of node

Project description

NVM Shim

LOGO

Automagically use the correct version of node with nvm exec functionality.

Build Status Coverage Status Pypi Stage Wheel Dependabot badge

No more nvm use

This will use existing .nvmrc file, falling back to the nvm alias default version if no config detected.

Installation

Pip

pip install nvshim

Github

pip install git+git://github.com/iamogbz/nvshim.git

Configuration

Reads all configuration from the environment.

NVM_DIR

Relies on nvm being installed and configured correctly.

NVSHIM_AUTO_INSTALL

Set to 1 or true to auto install specified version of node if not installed by nvm.

NVSHIM_VERBOSE

Set to 1 or true to show more information on the shimmed node process.

Otherwise set to 0 or false or nothing.

Caveats

To allow the nvshim installed node shim work in all directories, you'll need to stop sourcing nvm.sh in your shell rc i.e. bash_profile, zshrc etc.

Just comment out the source /Users/me/.nvm/nvm.sh in your shell startup script. This is optional and prevents nvm from taking control of your shell path on launch.

Contribution

All forms of contribution welcome, please see guide.

make install
make tests

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nvshim-1.1.2.tar.gz (56.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nvshim-1.1.2-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file nvshim-1.1.2.tar.gz.

File metadata

  • Download URL: nvshim-1.1.2.tar.gz
  • Upload date:
  • Size: 56.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.12

File hashes

Hashes for nvshim-1.1.2.tar.gz
Algorithm Hash digest
SHA256 77662f6751bd657429b79704a23f2855d6ac22165f618bbaca466a0aedfd72c4
MD5 0e88f3bc77048594b39cff5b42ec1b01
BLAKE2b-256 94c0aad82ffa98021b916074ecaece9ec43010d432bfd28acc9b1af813352484

See more details on using hashes here.

File details

Details for the file nvshim-1.1.2-py3-none-any.whl.

File metadata

  • Download URL: nvshim-1.1.2-py3-none-any.whl
  • Upload date:
  • Size: 17.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.12

File hashes

Hashes for nvshim-1.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dcf0ec98820870c4f2bc68f5547fa497b55eb1a38a183b9ce274662bb711dcf9
MD5 70e44f2e5f8ab571f03f7d4a09c85713
BLAKE2b-256 b420616efc6c0d00e4eba232a35947dc1d2a9302b2b045021780f81384160f21

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page