Skip to content

A simple CLI tool to get the most recently published versions of a package on npm or see which installed package versions were most recently published.

Notifications You must be signed in to change notification settings

mggwxyz/recently-published

Repository files navigation

recently-published

NPM Version Tests

A simple CLI tool to view which installed packages in your project were published most recently

Use Case

If you install or update your packages and something breaks, you can use this CLI tool to see which versions you just installed were most recently published and hence the most suspect. 

Installation & Usage

You can either install this package globally or use npx to run it without installation.

Global Installation

To install globally, use:

npm install -g recently-published

Once installed, you can run it anywhere with:

recently-published <options>

Using npx

If you prefer not to install it globally, you can use npx:

npx recently-published <options>

This will fetch and run the latest version of the package without needing a global install.

Usage

Usage: recently-published [options] [optionalPackageName]

Arguments:
  optionalPackageName       Optional package name whose recently published versions you want to see. If not provided, will display recently published packages installed in the current directory.

Options:
  -V, --version             output the version number
  -d, --display <number>    Number of recently published versions you would like displayed or "all" if you want to display all of them (default: "10")
  -ip, --includePrerelease  Include prerelease versions from the list of recently published versions
  --json                    Output the result in JSON format
  -h, --help                display help for command

Examples

Get 10 most recently published packages installed in the current directory

recently-published

returns

Name                               Version    Published     Date                       
eslint                             9.27.0     6 days ago    Fri May 16 2025 2:54 PM
@eslint/js                         9.27.0     6 days ago    Fri May 16 2025 2:28 PM
tsup                               8.5.0      6 days ago    Fri May 16 2025 9:41 AM
@types/node                        22.15.18   8 days ago    Wed May 14 2025 12:37 AM
typescript-eslint                  8.32.1     10 days ago   Mon May 12 2025 1:19 PM
@typescript-eslint/eslint-plugin   8.32.1     10 days ago   Mon May 12 2025 1:19 PM
@typescript-eslint/type-utils      8.32.1     10 days ago   Mon May 12 2025 1:19 PM
@typescript-eslint/parser          8.32.1     10 days ago   Mon May 12 2025 1:19 PM
@typescript-eslint/utils           8.32.1     10 days ago   Mon May 12 2025 1:19 PM
@typescript-eslint/scope-manager   8.32.1     10 days ago   Mon May 12 2025 1:19 PM

Get 10 most recently published versions of "react"

recently-published react

returns

react
Version   Published       Date                       
19.1.0    55 days ago     Fri Mar 28 2025 3:59 PM
19.0.0    5 months ago    Thu Dec 5 2024 1:10 PM
18.3.1    13 months ago   Fri Apr 26 2024 12:42 PM
18.3.0    13 months ago   Thu Apr 25 2024 12:45 PM
18.2.0    2 years ago     Tue Jun 14 2022 3:46 PM
18.1.0    3 years ago     Tue Apr 26 2022 4:40 PM
18.0.0    3 years ago     Tue Mar 29 2022 12:00 PM
17.0.2    4 years ago     Mon Mar 22 2021 5:56 PM
17.0.1    4 years ago     Thu Oct 22 2020 8:21 AM
17.0.0    4 years ago     Tue Oct 20 2020 4:11 PM

Get 10 most recently published versions of "react" including prerelease versions

recently-published react -ip

returns

react
Version                                Published      Date                       
0.0.0-experimental-8ce15b0f-20250522   9 hours ago    Thu May 22 2025 12:20 PM
19.2.0-canary-8ce15b0f-20250522        9 hours ago    Thu May 22 2025 12:18 PM
0.0.0-experimental-23884812-20250520   33 hours ago   Wed May 21 2025 12:20 PM
19.2.0-canary-23884812-20250520        33 hours ago   Wed May 21 2025 12:18 PM
0.0.0-experimental-c4676e72-20250520   2 days ago     Tue May 20 2025 12:20 PM
19.2.0-canary-c4676e72-20250520        2 days ago     Tue May 20 2025 12:18 PM
0.0.0-experimental-462d08f9-20250517   3 days ago     Mon May 19 2025 12:20 PM
19.2.0-canary-462d08f9-20250517        3 days ago     Mon May 19 2025 12:18 PM
0.0.0-experimental-4448b187-20250515   6 days ago     Fri May 16 2025 12:20 PM
19.2.0-canary-4448b187-20250515        6 days ago     Fri May 16 2025 12:18 PM

Get all published versions of "ink-spinner" sorted by publish date

recently-published ink-spinner -d all

returns

ink-spinner
Version   Published     Date                       
5.0.0     2 years ago   Wed Mar 1 2023 4:04 PM
4.0.3     3 years ago   Tue Oct 5 2021 1:19 PM
4.0.2     4 years ago   Fri May 7 2021 3:09 PM
4.0.1     4 years ago   Tue Aug 18 2020 2:58 PM
4.0.0     4 years ago   Sun Jul 26 2020 3:49 PM
3.1.0     4 years ago   Tue Jun 23 2020 3:22 PM
3.0.1     6 years ago   Sun Apr 14 2019 11:14 PM
3.0.0     6 years ago   Mon Mar 4 2019 2:59 AM
2.0.0     7 years ago   Sun May 20 2018 2:58 PM
1.0.0     7 years ago   Sat Jul 15 2017 3:10 PM

About

A simple CLI tool to get the most recently published versions of a package on npm or see which installed package versions were most recently published.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published