npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

znvm

v1.0.4

Published

lazy load nvm on zsh along with obvious .nvmrc file behaviour

Downloads

28

Readme

znvm

makes zsh with nvm fast and more convenient

Features

  • Make zsh with nvm faster by loading only if .nvmrc file found or called explicitly
  • Automatically calls nvm use if .nvmrc is present.
  • If node vesion in .nvmrv is not installed it will automatically call nvm install <node_version>
  • Can be configured to load nvm before certain commands are executed on the shell (such as editors and IDEs)

Before installing

Make sure you remove or comment out the following lines from your .zshrc file

# export NVM_DIR="$HOME/.nvm"
# [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
# [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

Installation - automatic

curl -o- https://raw.githubusercontent.com/Kasahs/.znvm/master/install.sh | zsh

then open new terminal or use

source ~/.zshrc

Installation - manual

Clone the repo in $HOME

git clone https://github.com/Kasahs/.znvm.git $HOME/.znvm

source znvm.sh in .zshrc

echo "source $HOME/.znvm/znvm.sh" >> ~/.zshrc

then open new terminal or use

source ~/.zshrc

Configure

open $HOME/.znvm/znvm.conf.sh in an editor

gedit $HOME/.znvm/znvm.conf.sh

Add/remove items from the ZNVM_PREEXEC ARRAY

# Add/remove items from the array given below
ZNVM_PREEXEC=("subl" "atom" "code")

# WARNING: Dont remove the ZNVM_PREEXEC variable
# leave ZNVM_PREEXEC=() to disable this feature

Usage

nothing to do here its very natural ;)

  • if you wish to use nvm just call it, wait for it to load and then start using it
  • if you switch to a dir that has .nvmrc, nvm will automatically load and use node version specified in .nvmrc
  • if node version specified in .nvmrc is not installed it will be automatically installed and used
  • if you have configured ZNVM_PREEXEC then nvm will be loaded before command executes