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

npm-multi-linker

v0.1.9

Published

This utility is made to simplify the handling of multiple dependant npm modules. It allows you to link multiple dependencies of multiple modules with one simple command.

Downloads

7

Readme

npm-multi-linker

This utility is made to simplify the handling of multiple dependant npm modules. It allows you to link multiple dependencies of multiple modules with one simple command.

Determination on what to link is based on which modules are currently installed in the target module and which modules are found in the source modules. Be sure to npm install your dependencies before trying to link. Use the -i-option to install before linking.

Options

| Option | Long Option | Description | | :----- | :---------------- | :------------------------------------------------------- | | -d | --dry-run | Only print the results. | | -i | --install-before | Run npm install in each package before linking. | | -n | --npm-link | Use npm link istead of directly creating symlinks. | | -p | --package-path | Package(s) on which dependencies shall be replaced. | | -q | --quiet | No stdout output. | | -r | --recursion-depth | How deep to search for modules in search paths. if only -r is specified, it searches infinitly (may be slow) | | -s | --search-path | These paths are searched for target modules for links. | | -u | --unlink | Reset all links by invoking npm install in all packages. |

Examples

Replace all dependencies of all modules in the current directory by links to modules in current directory

cd path/to/directory/containing/my/repos
npm-multi-linker

Replace all dependencies of a given module in the current directory by links to modules in current directory

cd path/to/directory/containing/my/repos
npm-multi-linker -p my-package

Replace all dependencies of a given module in directory dir1 by links to modules in directory dir2

npm-multi-linker -p path/to/dir1/my-module -s path/to/dir2

Run npm install before linking

This is handy when you just cloned your repositories but did not install.

cd path/to/directory/containing/my/repos
npm-multi-linker -i

Undo linking

Side use: This can also be used if you never linked before. It just runs npm install in all packages.

cd path/to/directory/containing/my/repos
npm-multi-linker -u