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

@team-griffin/reins

v0.1.0

Published

cron-oriented dependency updater

Downloads

4

Readme

reins

cron-oriented dependency updater

This package will check for any outdated dependencies for a given repository and create pull requests for them.

Installation

npm install -g @team-griffin/reins

Usage

reins --gh-token="123456" --org="team-griffin" --repo="reins"

parameters

| parameter | example | default | description | |-----------|---------------------------------------|--------------------------|-------------| | org* | --org="team-griffin" | | | | repo* | --repo="reins" | | | | gh-token* | --gh-token="123-456-789" | | your OAuth token used to authenticate write actions on the repo. You can also set a GH_TOKEN environment variable | | token | --token="123-456-78" | | an alias for gh-token | | test | --test="yarn lint && yarn test" | | a test command to run. A PR will only be created for a minor change if the test fails. If no test is provided, PRs will be created for every change | | tmp-dir | --tmp-dir="./tmp" | %temp% | the location to store a temporary copy of the repo | | master | --master="some-branch" | master | the base branch on which to fork all PRs from | | gh-api | --gh-api="https://some-api-url.net" | https://api.github.com | The github api url. You will need to specify this if you are using an enterprise github repo. | | gh-url | --gh-url="some-github-url.com" | https://github.com" | The base github url, you can also set the GH_URL environment variable. If the url contains a <token> it will be replaced with the gh-token value. | | level | --level=1 | 4 | The log level, this can be a value from 0 (debug) to 4 (errors) | | verbose | --verbose | | Shorthand for writing --level=1 |

Logic

There is logic for minor and major dependency changes:

Minor

  • If there is a --test command, it will only create a pull request if the test fails
  • If there is no --test command, it will create a pull request regardless.
    This allows you to audit your applications and libraries to different extents. i.e. a library does not need to re-publish for minor changes, whereas an application does.

Major

  • A pull request is created whether or not there is a --test command, as this is considered a breaking change and shosuld be manually checked before updating.

Environment variables

  • GH_TOKEN
  • GH_URL