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

ncu-config-nick2bad4u

v0.2.1

Published

Shared npm-check-updates configurations for Nick2bad4u npm repositories.

Readme

ncu-config-nick2bad4u

NPM license. NPM total downloads. Latest GitHub release. GitHub stars. GitHub forks. GitHub open issues. Codecov. SonarCloud quality gate. Repo Checks.

Shared npm-check-updates configurations for Nick2bad4u npm repositories.

The package keeps dependency-update policy in one published place and provides separate presets for ordinary packages and npm workspaces. TypeScript is temporarily held back in both presets so repositories do not move to TypeScript 7 before the shared toolchain is ready.

Install

npm install --save-dev npm-check-updates ncu-config-nick2bad4u

The typed helper is ESM-only and supports Node.js ^22.22.3 || ^24.16.0 || >=26.3.0. The presets support npm-check-updates ^22.2.9 || ^23.0.0.

Non-workspace repositories

Point NCU at the standard config from a package script:

{
 "scripts": {
  "update-deps": "ncu --configFileName .ncurc.json --configFilePath node_modules/ncu-config-nick2bad4u"
 }
}

npm workspaces

Use the workspace preset when the root package.json declares npm workspaces:

{
 "scripts": {
  "update-deps": "ncu --configFileName .ncurc.workspaces.json --configFilePath node_modules/ncu-config-nick2bad4u"
 }
}

The workspace preset sets workspaces: true and root: true, so it checks the root package and every declared workspace. It keeps deep: false; npm workspace traversal and arbitrary nested package.json discovery are different NCU modes and cannot be enabled together.

Both presets enable NCU's interactive upgrade flow. npm run update-deps prompts for selections and writes the selected version ranges to matching manifests, but install: "never" prevents NCU from running npm install. Command-line options take precedence for one-off behavior.

Temporary TypeScript holdback

Both presets currently publish this shared exclusion:

{
 "reject": ["typescript"]
}

This freezes TypeScript at the version already declared by each consumer while allowing other dependencies to update. NCU's JSON configuration cannot reject only TypeScript versions >=7 by package name: a JSON rejectVersion pattern would apply to every dependency, while package-aware predicates require a JavaScript config. Remove typescript from the shared reject list once the shared TypeScript/ESLint/testing stack supports TypeScript 7.

Programmatic access

The package exports stable file names, absolute paths, and a typed loader that verifies the selected workspace mode:

import {
 loadNcuConfig,
 ncuConfigPath,
 ncuWorkspacesConfigPath,
} from "ncu-config-nick2bad4u";

const standardConfig = await loadNcuConfig();
const workspaceConfig = await loadNcuConfig("workspaces");

console.log(ncuConfigPath, ncuWorkspacesConfigPath);
console.log(standardConfig.workspaces, workspaceConfig.workspaces);

The public helper surface is:

  • ncuConfigFileName and ncuWorkspacesConfigFileName for stable published filenames.
  • ncuConfigPath and ncuWorkspacesConfigPath for absolute installed paths.
  • loadNcuConfig to read a preset and verify its workspace mode.
  • parseNcuConfig to mode-check an already parsed object.
  • NcuConfig and NcuConfigMode for TypeScript consumers.

The raw JSON files are also exported for JSON-module consumers:

import standardConfig from "ncu-config-nick2bad4u/.ncurc.json" with { type: "json" };
import workspaceConfig from "ncu-config-nick2bad4u/.ncurc.workspaces.json" with { type: "json" };

Shared defaults

  • Uses npm and the public npm registry with eight concurrent requests and three retries.
  • Checks production, development, optional, and package-manager dependencies against the latest tag.
  • Requires versions to be at least one minute old and caches registry results for 60 minutes.
  • Groups interactive results by dependency type, version impact, ownership changes, publication time, and homepage.
  • Excludes prereleases by default, preserves version ranges, and never installs dependencies automatically.
  • Temporarily excludes the typescript package, preventing an automatic TypeScript 7 upgrade.
  • Enables NCU's root-config merging when consumers explicitly use deep or package-file discovery.
  • Keeps the standard and workspace behaviors separate through workspaces: false and workspaces: true.

The config-location flags intentionally stay in the consuming command. NCU uses configFileName and configFilePath to find a rc file, so embedding either selector inside the file it already loaded is ineffective and non-portable.

Verification

npm run release:verify
npm pack --dry-run

See the configuration policy for the complete contract and the maintenance checklist when updating NCU or changing the published policy.