🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

shoulders

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shoulders

> If I have seen a little further it is by standing on the shoulders of giants.

latest
Source
npmnpm
Version
2.3.2
Version published
Maintainers
1
Created
Source

If I have seen a little further it is by standing on the shoulders of giants.

—Isaac Newton, John of Salisbury, and others before them

shoulders

Quickly view a list of open issues for the open-source packages that your project depends on.

shoulders demo

Terminal theme: Rivet by themer

Usage

npx shoulders

shoulders will find dependencies in the node_modules folder, identify corresponding repositories on GitHub, and query GitHub's API for open issues.

If your project depends on many packages you will likely run into rate limiting errors from the GitHub API; you can increase the limit by using a personal access token (the only scope needed is public_repo) and passing it to shoulders via the $GITHUB_TOKEN environment variable:

GITHUB_TOKEN='<your token>' npx shoulders

Parameters

NameTypeShort description
--labelsstringFilter issues by labels
--depthnumberLook for issues only n levels deep
--formatstringFormat the output

Issue Filtering

In addition to listing all open issues, you can optionally include a comma-separated list of labels to use. For example, to see only issues with the bug label:

npx shoulders --labels bug

Or to include multiple labels, you can do:

npx shoulders --labels="bug,good first issue"

Controlling Depth

If you wish to look for issues only n levels deep, you can specify a depth parameter:

# Look for issues in your direct dependencies
npx shoulders --depth=0

Output Format

You can format the output by passing a format parameter:

npx shoulders --format html

If you'd like to create a new file you can pipe the output like this:

npx shoulders --format html > output.html

The available formats are currently console (default), html and md (markdown).

Why?

Modern software would not be possible without the mountains of previous work by others—much of it open source—as its foundation. In the spirit of Hacktoberfest 2019, this simple script makes it a little bit easier to find a way to support the projects that we depend on so heavily.

License

MIT © Matt Swensen

FAQs

Package last updated on 10 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts