Skip to content

zsh plugin for switching node versions automatically with n

Notifications You must be signed in to change notification settings

vineyardbovines/n.zsh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

n.zsh

a zsh plugin for auto-switching node versions based on project environment using n

installation

prerequisites

  • jq
brew install jq

antigen

antigen bundle gretzky/n.zsh

zplugin

zplugin load gretzky/n.zsh

zgen

zgen load gretzky/n.zsh

oh-my-zsh

  • cd ~/.oh-my-zsh/custom/plugins
  • git clone https://github.com/gretzky/n.zsh
  • add n.zsh to plugins=() in your .zshrc

usage

on its own, n.zsh will check for a package.json in the current directory. if it exists, it checks and reads the value of the node engine, and then switches to that version using n.

if the node engine reads 'greater than', n switches to node stable. otherwise, it switches to the specified version.

About

zsh plugin for switching node versions automatically with n

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages