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

ghvolo

v0.0.1

Published

A command line tool that uses volo as a library to do searches and resolutions of github IDs for front end/browser-based web dependencies

Downloads

5

Readme

ghvolo

A command line tool that uses volo as a library to do searches and resolutions of github IDs for front end/browser-based web dependencies.

This shows how you could use volo's github awareness just for identifying code on github, without using volo's other features.

This may be useful if you like the idea of using github as a package registry, but did not want to use the volo client tool to pull down the code.

It also allows you to experiment with how different IDs would be resolved using github and its API for a registry.

These features of volo do not require or assume AMD or some other module format to work. It just operates on github, using owner/repo pairs for final resolution, and version tags to find the latest release.

Running ghvolo does not install anything, it just prints out JSON results.

Install

Install globally so that the bin command works in any directory.

npm install -g ghvolo

Usage

There are two commands that ghvolo understands:

search

Search github for a given repo name:

ghvolo search jquery

This will give the top five github search results for repos that are language=JavaScript. The first search result's owner/repo combination is used for the resolve command below.

resolve

Resolves a repo name to the owner/repo/latestVersionTag ID, along with info on a download URL. Understands package.json files that have a volo or browser section, and will fall back to volojs/repos for shim config for any owner/repo pairs that are in volojs/repos:

ghvolo resolve jquery

Raw JSON output

By default, ghvolo uses prettyjson to show the JSON output. However, if you are more comfortable reading the raw JSON, pass -j:

ghvolo -j search jquery
ghvolo -j resolve jquery

Sample commands to try

ghvolo resolve bootstrap#js/bootstrap-alert.js

Resolves 'bootstrap', and give an url for the latest tag version, picking out just the js/bootstrap-alert.js file within that tagged archive.

ghvolo resolve backbone

Resolves backbone. documentcloude/backbone has a shim config in volojs/repos, so volo dependencies are listed in the packageInfo section, and since the volojs/repos shim has a volo.url section, a direct download link for backbone.js is used for the download URL.

ghvolo resolve underscore

Resolves to documentcloud/underscore. underscore does not have a shimmed package.json for a simple one file JS download url, so the download URL is a zip file for the latest release version.

ghvolo resolve html5boilerplate

Resolves to h5bp/html5-boilerplate and gives a zipball URL for the latest version tag release.