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

nano-update-notifier

v1.3.0

Published

Update notifications for your CLI app. Zero dependencies.

Downloads

1,010

Readme

nano-update-notifier

Update notifications for Node.js CLI applications, with no runtime dependencies.

It implements the public API and observable behaviour of [email protected], so an existing call site keeps working once the import is changed.

Install

npm install nano-update-notifier

Node.js 18 or newer is required. ESM and CommonJS entry points are both included, along with TypeScript declarations for each.

Usage

import updateNotifier from 'nano-update-notifier';

updateNotifier({pkg: packageJson}).notify();
const updateNotifier = require('nano-update-notifier');

updateNotifier({pkg: require('./package.json')}).notify();

Coming from update-notifier, only the import changes:

-import updateNotifier from 'update-notifier';
+import updateNotifier from 'nano-update-notifier';

API

const notifier = updateNotifier({
  pkg: {name: 'my-cli', version: '1.0.0'},
  updateCheckInterval: 86_400_000,
  shouldNotifyInNpmScript: false,
  distTag: 'latest',
});

notifier.notify({
  defer: true,
  message: 'Update {packageName} with {updateCommand}',
  isGlobal: false,
  boxenOptions: {padding: 1, borderStyle: 'round'},
});

updateNotifier(options) returns a notifier. notifier.update holds the cached update, if any, as {latest, current, type, name}. notify() returns the notifier so calls can be chained.

The deprecated packageName and packageVersion options are still accepted.

notifier.config exposes the ConfigStore operations consumers rely on: get, set, has, delete, clear, all, size, and path.

Behaviour

The version check runs in a detached process and never holds the host CLI open. A successful check is cached and shown on the next run.

Notifications are suppressed outside a TTY, in CI, during tests, when NO_UPDATE_NOTIFIER is present, and when --no-update-notifier is passed. npm and Yarn scripts are suppressed unless shouldNotifyInNpmScript is enabled.

Network, registry, cache, and permission failures are swallowed. The only error raised is pkg.name and pkg.version required, from the constructor.

Project, user, and global .npmrc files are honoured, including scoped registries, registry environment overrides, bearer tokens, and basic authentication.

Development

npm ci
npm run verify

verify builds the package, checks its types, runs every test, and enforces the zero-dependency and size limits.

npm run demo starts a throwaway registry and walks a fake CLI through the cold cache, the notification, every opt-out, and a dead registry. See examples/.

License

MIT