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

@pabueco/ncl

v0.6.5

Published

Explore the changelog of dependencies and repositories in a nice way.

Downloads

30

Readme

ncl

nice changelog

ncl provides a quick and easy way to view the relevant changelog entries or GitHub releases for dependencies or general GitHub repositories. The main goal was to make dependeny upgrades a bit easier, but you can also use it to explore and discover changes of any GitHub repository.

Since it's aimed at locally installed packages, it makes use of the available package managers on your system to retrieve infos like repository URL and the installed version number of dependencies.

Currently the following package managers are supported:

npm, pnpm, yarn, bun, composer, cargo

You can work around unsupported package managers by providing the repository name or URL and version (optional) yourself. Support for more package managers will be added in the future.

Installation

You can easily run ncl via npx (or alternatives like bunx, pnpx and yarn dlx):

# Run it directly
npx @pabueco/ncl <args>

# or install it globally:
npm i -g @pabueco/ncl
ncl <args>

[!NOTE]
If you want to view GitHub releases for repositories, you need to have the GitHub CLI installed.

Usage

<pkg> can be any dependency name (like vue) when you are running ncl inside a project directory using one of the supported package managers. When running it in any other directory <pkg> needs to be the full name (or URL) of a GitHub repository (like vuejs/core, https://github.com/vuejs/core) or the URL of a changelog markdown file (like https://github.com/vuejs/core/blob/main/CHANGELOG.md).

# Basic fingerprint:
ncl <package> [<version-or-range>]

# Viewing the changelog entries between the locally installed and the latest available version:
ncl <pkg>

# Locally installed version up until version 4.x:
ncl <pkg> ..4.x

# Version 2 - 4
ncl <pkg> 2..4

# Only version 3.5.x
ncl <pkg> 3.5

# All versions from 4
ncl <pkg> 4..

# All versions
ncl <pkg> all

# You can also use more complex semver ranges, but they need to be escaped in most terminals:
ncl <pkg> "\>2.3 \<=2.8"

When specifying a version range you can use between 2 and 4 dots (e.g. 2..3 or 2....4), so use what feels best for you.

Advanced usage

# View changes of any repo without needing to have the dependency installed locally:
ncl vuejs/core
ncl https://github.com/vuejs/core
ncl https://raw.githubusercontent.com/vuejs/core/main/changelogs/CHANGELOG-3.2.md

ncl vuejs/core 3.x

# Change the order of changes:
ncl <pkg> --order desc

# Print all changelog entries once instead of viewing them interactively:
ncl <pkg> --list

Options

There are a few options available to configure the behaviour if you want to.

Run ncl --help to see all available options.