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

release-notes

v1.0.1

Published

Generate release notes from recent pull requests

Downloads

28

Readme

release-notes

npm

Generate markdown from all of the PRs that have been closed since your last release!

Originally used to generate notes for zapier-platform-cli and its related repos.

Usage

In its simplest form, invoking this pulls the names of all of the closed PRs since the last time the given repo had a release. If passed multiple repos, it'll use the most recent release of the first as the date to filter against.

For more info, run:

% release-notes -h

Limitations

Currently, this is only set up to pull from Github. It can be expanded to use other providers if there's interest though!

Private Repos

If you need to access private repos, use either the -t flag or set your GITHUB_API_TOKEN before invoking the CLI.

API

In addition to a CLI, this package exports two functions for use javascript:

releaseNotes

The main method, this does calls to the github API and returns an object with a list of closed PRs grouped by repo name.

formatMarkdown

Takes the above object of PRs and returns a nicely formatted markdown file. This is separate so if you want to build/parse the output yourself, it's easy to do.

It accepts an object with the following keys as the second parameter (all of which are optional):

| Key | Type | Description | | --------- | ---------- | --------------------------------------------------------------------------------- | | keepOrg | boolean | if true, list the repo as <ORG>/<REPO> instead of <REPO>. Defaults to false | | order | string[] | print the repos in this order (which can be different than the supplied order) | | version | string | pre-fills the version number. Prints MAJOR.MINOR.PATCH if missing |