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

kupler

v0.0.2

Published

Local only package for linking globals such as React to avoid conflict.

Downloads

3

Readme

Kupler (Experimental)

Utility for managing globally linked packages. One of the issues you run into with packages like React is that you cannot run multiple instances of it. This requires you to link your library or other package to the same instance of react.

The issues arises when you forget where you linked it. There are occassions where even running --force to remove the link is problematic.

Kupler simply provides a management of packages that are going to be used for linking to.

Doesn't NPM Do This Already?

Yeah pretty much, basically all we're doing here is adding a few helpers to better understand what's linked and where, and it ensures thes packages are always linked from one specific place. Again this prevents issues where we link a package then move it, delete or whatever. Kupler just makes this all a little cleaner.

Getting Started

Globally install the package.

$ npm install kupler -g

Install Packages

You can run this command from anywhere the package will only be installed in Kupler's node modules.

NOTE: to update/upgrade packages simply run kupler upgrade however you may wish to uninstall and then reinstall for greater control.

$ kupler install react

Make the Package Global

This is the same as if you navigated to the React directory within Kupler's node_modules and ran npm link

$ kupler link react

Use in Project

Once the above steps have been completed you can now use the linked package in any other package ensure your library and your primary package are using the same package.

$ cd /some/other/project/dir
$ kupler use react

REMINDER: linking and unlinking are used in Kupler to link it's installed packages, the "use" and "unuse commands are for using those linked packages in another package!

Show Status

To show the linked package status run the following:

kupler status
# or
kupler status -g

You should see something similar to the below:

Link Status Image

You can also show the status of all globally linked packages. Just add the -g or --global flag. Since we are looking at global packages we provide the path where they are linked. There is no need to show this path without the --global flag as we know they are only linked locally.

Link Status Image

Npm vs Yarn

Kupler works with either. If you install using Yarn then Kupler will use Yarn otherwise it will use Npm

Can I Use Npm or Yarn Manually

Of course it's just a package like any other. The subset of commands are those that you would use with Kupler. There is no intent on creating a complete wrapper around Npm or Yarn. So if you wish to install locally see the next section.

Installing Locally Instead of Globally

If you do not wish to install Kupler globally you can certainly do so locally. All you need to do to add Kupler to your path after installing locally is to run link on the project itself and you're ready to go.

Here's the process. Navigate to the directory you wish to install to.

$ git clone https://github.com/blujedis/kupler.git
$ cd kupler
$ npm install #or yarn install
$ npm link #or yarn link

Perhaps we'll make a "create-kupler" package to do the above automatically :)

TODO

Lots of redundancy in the code as this was slapped together, feel free to clean up and PR. If and when we get more time perhaps we can clean some of this up, add better docs, but uhhhh not likely :)

Not really tested for Windows. Generally should work but not tested.

Change

See CHANGELOG.md

License

See LICENSE