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

pure-viewer

v1.0.0

Published

view pull requests by user

Downloads

3

Readme

PuRe Viewer (Pull Request Viewer)

Get open pull requests for any set of github users

Installation

Clone this repo, and run npm install

Usage

Once installed globally, you can call PuRe by pure-viewer or its alias prv.

Usage: prv [options] [command]

  a cli-tool to display open pull requests by user


  Options:

    -v, --version              output the version number
    -u, --username <username>  Authenticate as this github user
    -p, --password             Authenticate with a password
    -t, --token                Authenticate with a github Personal Access Token
    --no-color                 Disables console output colors and style
    -h, --help                 output usage information


  Commands:

    config-set <key> <value>               Set a configuration value
    config-get [key]                       get a configuration value or all values
    config-delete [keys...]                delete a config keys
    alias-set <key> <user> [moreUsers...]  Create an alias for a group of users
    alias-get [key]                        get the value of an alias or view all
    alias-delete [keys...]                 delete aliases
    auth <username>                        Authenticate with github and save the credentials for future requests
    by-author <user> [moreUsers...]        Retrieve all open pull requests authored by the given user(s)
    by-assignee <user> [moreUsers...]      Retrieve all open pull requests assigned to the given user(s)

PuRe can get open pull requests by author, or asignee. The two primary commands are:

prv by-author author1 author2 author3 ...
prv by-assignee author1 author2 author3 ...

Where author1, author2, and author3 are github usernames

Authentication

Sometimes, users have pull requests opened against private repos, which means they will not show up in results. However, if you have a user which can view those private repos, you can authenticate as that user to see the PR.

Method 1 - Explicit Auth

prv auth username -p
prv auth username -t

This command will attempt to authenticate as the provided username, using the prompted password (-p) or token (-t). If the authentication succeeds, the auth header will be stored in the local config and used for future requests. You can delete the stored auth with prv config-delete auth if you need to.

It is advised you utilize a github Personal Access Token with view-repo permission granted on it, as password authentication will fail for accounts with 2FA enabled.

Method 2 - Inline Auth

prv -u username -t by-author author1
prv -u username -t by-assignee author1
prv -u username -p by-author author1
prv -u username -p by-assignee author1

The by-author and by-assignee methods can accept auth options too, and will attempt to authenticate before making the request. If the requests succeed, the auth header will be saved and used in future requests by default.

Advanced Usage

If you need the same group or groups of users frequently, it may be beneficial to store them in an alias.

prv alias-set my-team author1 author2
prv by-author my-team

prv will automatically expand aliases at run time, so you can even chain multiple aliases together

prv by-assignee lead-devs qa-team interns author3

Aliases can be overwritten with alias-set or deleted with alias-delete at any time

prv alias-set my-team newUser1 newUser2 newUser3
prv alias-delete my-team qa-team

You can also get the value of any alias using alias-get

prv alias-get my-team

If you do not provide an argument to alias-get, the entire block of known aliases will be returned