check if a package is npm linked code example Example: npm global link check npm ls -g --depth=0 --link=true