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

yah

v0.2.3

Published

'You Already Have' package manager for node.js

Downloads

8

Readme

yah

###"You Already Have" package manager for node.js

Installation

$ npm install -g yah

What it does

Searches for packages installed throughout the system so you don't have to download them again. It's developed to solve the "I have no internet connection so I can't download my packages" problem.

On the first run

(or "building the package list")

Run yah:

$ yah

You'll be asked for a workspace directory, like dev or workspace (the directory where you put your node projects). If you leave it blank, only the default directory where npm put the globally installed modules will be searched. Then, the program will start searching for node_modules directories and package.json files to build up a list with the found modules.

Once the search is finished, the list will be stored in a file called yah_installed_packages.json in your home directory.

Searching for installed packages

Once you have the package list, run yah search <package> and a list with the details of each copy of the package will be displayed.

Example:

$ yah search express
YAH results for express (3 found)
[email protected] | /home/user/dev/meanjs
[email protected] | /home/user/dev/newproject
[email protected] | /home/user/dev/oldproject

You can search for various packages in the same query.

Example:

$ yah search express mongoose
YAH results for express (3 found)
[email protected] | /home/user/dev/meanjs
[email protected] | /home/user/dev/newproject
[email protected] | /home/user/dev/oldproject

YAH results for mongoose (5 found)
[email protected] | /home/user/dev/mongusto
[email protected] | /home/user/dev/hahahaohrly
[email protected] | /home/user/dev/realproject

Adding packages to your project [not working yet]

(or "installing installed modules")

Since the important part of the listing is the package's version, you can run yah install <package>@<version> and the package with the targeted version will be copyed from the first project listed in the yah_installed_packages.json file.

Example:

$ yah install [email protected]
Copying [email protected] from mean.js project
Saving to your package.json
Done!

Listing all installed packages

(or "get my gigantic list of installed packages, please")

You can list all the packages by typing yah list. Probably a GIANT OUTPUT will be shown. You can (and I recommend) write it to a file, if you want.

Example:

$ yah list
[email protected] | /home/user/dev/meanjs
[email protected] | /home/user/dev/newproject
[email protected] | /home/user/dev/oldproject
[email protected] | /home/user/dev/iamgrunt
[email protected] | /home/user/dev/stabledoge
[email protected] | /home/user/dev/mypromise
[email protected] | /home/user/dev/newproject
[email protected] | /home/user/dev/shouldigo
[and the list goes on]

Writing output to file (or "don't mess with my terminal")

$ yah list >> ~/organized_npd_list_all.txt

Important: don't concat it to yah_installed_packages.json or else your list probably will be doomed and you'll end up having to make another one.

License

MIT