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 🙏

© 2026 – Pkg Stats / Ryan Hefner

latest-github-release

v1.0.4

Published

Find the latest release of a given GitHub repository

Readme

latest-github-release

Find the latest release of a given GitHub repository

Summary


Installation


Prerequisites

Installing

npm install -g latest-github-release OR sudo npm install -g latest-github-release


USAGE


$ node latest-github-release.js -h

  Usage: latest-github-release [options]

  Options:

    -h, --help                     output usage information
    -V, --version                  output the version number
    -o, --owner <owner>            Owner of repository [Mandatory]
    -r, --repository <repository>  Name of repository [Mandatory]
    -d, --download <suffix>        Suffix of download url. Example: "x64.tar.gz"

    -t, --tag                      Show up tag
    -n, --notes                    Show up body of release

  Examples:

    $ latest-github-release -o welbert -r github-latest
    $ latest-github-release -o welbert -r github-latest -n
    $ latest-github-release -o welbert -r github-latest -d ".zip"

Example

Get repository information

  • Input: $ latest-github-release -o atom -r atom

  • Output:

Project: atom
Url: https://github.com/atom/atom/releases/tag/v1.17.2
Published at: Thu May 25 2017 17:38:59 GMT-0300 (Hora oficial do Brasil)
Tag: v1.17.2
Download urls:
      https://github.com/atom/atom/releases/download/v1.17.2/atom-1.17.2-delta.nupkg
              Size: 12.78 MB
              Download Count: 207
      https://github.com/atom/atom/releases/download/v1.17.2/atom-1.17.2-full.nupkg
              Size: 123.05 MB
              Download Count: 249
      https://github.com/atom/atom/releases/download/v1.17.2/atom-amd64.deb
              Size: 97.56 MB
              Download Count: 4070
      https://github.com/atom/atom/releases/download/v1.17.2/atom-amd64.tar.gz
              Size: 98.1 MB
              Download Count: 889
      https://github.com/atom/atom/releases/download/v1.17.2/atom-api.json
              Size: 963.65 KB
              Download Count: 110
      https://github.com/atom/atom/releases/download/v1.17.2/atom-mac-symbols.zip
              Size: 8.2 KB
              Download Count: 83
      https://github.com/atom/atom/releases/download/v1.17.2/atom-mac.zip
              Size: 110.8 MB
              Download Count: 4602
      https://github.com/atom/atom/releases/download/v1.17.2/atom-windows.zip
              Size: 122.39 MB
              Download Count: 3072
      https://github.com/atom/atom/releases/download/v1.17.2/atom-x64-1.17.2-delta.nupkg
              Size: 12.74 MB
              Download Count: 61
      https://github.com/atom/atom/releases/download/v1.17.2/atom-x64-1.17.2-full.nupkg
              Size: 135.69 MB
              Download Count: 96
      https://github.com/atom/atom/releases/download/v1.17.2/atom-x64-windows.zip
              Size: 134.76 MB
              Download Count: 3556
      https://github.com/atom/atom/releases/download/v1.17.2/atom.x86_64.rpm
              Size: 99.61 MB
              Download Count: 1401
      https://github.com/atom/atom/releases/download/v1.17.2/AtomSetup-x64.exe
              Size: 131.97 MB
              Download Count: 3603
      https://github.com/atom/atom/releases/download/v1.17.2/AtomSetup-x64.msi
              Size: 131.67 MB
              Download Count: 1075
      https://github.com/atom/atom/releases/download/v1.17.2/AtomSetup.exe
              Size: 119.4 MB
              Download Count: 2400
      https://github.com/atom/atom/releases/download/v1.17.2/AtomSetup.msi
              Size: 119.12 MB
              Download Count: 414
      https://github.com/atom/atom/releases/download/v1.17.2/RELEASES
              Size: 17.49 KB
              Download Count: 323
      https://github.com/atom/atom/releases/download/v1.17.2/RELEASES-x64
              Size: 1.41 KB
              Download Count: 294

Get url to download

  • Input: $ latest-github-release -o zyedidia -r micro -d "linux-arm.tar.gz"
  • Output:
https://github.com/zyedidia/micro/releases/download/v1.2.0/micro-1.2.0-linux-arm.tar.gz

Automating installation of programs

  • install-micro.sh
#!/bin/bash

url=$(latest-github-release -o zyedidia -r micro -d "linux-arm.tar.gz")
wget -O micro.tar.gz $url
tar -zxf micro.tar.gz
sudo mv micro-*/micro /usr/local/bin/
rm -R micro-* micro.tar.gz