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

@amedia/lockfile-lint-config

v2.0.0

Published

Shared lockfile-lint configuration helper for Amedia projects

Readme

@amedia/lockfile-lint-config

Shared lockfile-lint configuration helper for Amedia projects. Mirrors the @amedia/eslint-config pattern: ship a tiny lockfile-lint.config.js that calls a factory and gets sensible defaults plus the ability to extend.

Install

npm install --save-dev @amedia/lockfile-lint-config

Use

// lockfile-lint.config.js
import { lockfileLintConfig } from '@amedia/lockfile-lint-config';

export default lockfileLintConfig();

The runner @amedia/kragl-lockfile-lint discovers this file via cosmiconfig and merges it through lockfileLintConfig() before invoking lockfile-lint. The same merge applies regardless of config format — JS, JSON, YAML, rc, or a "lockfile-lint" key in package.json all compose with the defaults the same way:

// .lockfile-lintrc.json — equivalent to the JS example below
{
  "allowed-package-name-aliases": ["my-pkg-cjs:my-pkg"],
}
// lockfile-lint.config.js — equivalent to the JSON example above
import { lockfileLintConfig } from '@amedia/lockfile-lint-config';
export default lockfileLintConfig({
  'allowed-package-name-aliases': ['my-pkg-cjs:my-pkg'],
});

Static configs (JSON/YAML/rc) cannot call the helper themselves, but the runner applies the same merge logic on their behalf, so the defaults are never silently dropped.

Extending the defaults

lockfileLintConfig(overrides) merges your overrides on top of the defaults. The merge strategy is per-key:

  • Array-valued options (allowed-hosts, allowed-schemes, allowed-urls, allowed-package-name-aliases, integrity-exclude) — concatenated with the defaults and deduplicated. You add to the list; you cannot remove from it. If the default value is an array and the override is also an array, the result is [...defaults, ...overrides] (uniq, order preserved).
  • Scalar options (type, validate-package-names, validate-integrity, validate-https, empty-hostname, format, path) — replaced outright by your override. Pass 'validate-package-names': false to turn the check off entirely, etc.
  • Keys not present in the defaults — passed through as-is.
import { lockfileLintConfig } from '@amedia/lockfile-lint-config';

export default lockfileLintConfig({
  // adds to the default trio of cliui aliases
  'allowed-package-name-aliases': ['my-pkg-cjs:my-pkg'],
  // extends ['npm'] → ['npm', 'internal-registry']
  'allowed-hosts': ['internal-registry'],
  // replaces the default `true`
  'validate-package-names': false,
});

If you need to drop one of the defaults (e.g. remove an allowed-package-name-aliases entry), import defaults directly and build the config yourself rather than calling lockfileLintConfig():

import { defaults } from '@amedia/lockfile-lint-config';

export default {
  ...defaults,
  'allowed-package-name-aliases': defaults[
    'allowed-package-name-aliases'
  ].filter((entry) => entry !== 'wrap-ansi-cjs:wrap-ansi'),
};

Defaults

| Option | Value | | ------------------------------ | --------------------------------------------------------------------------------------- | | type | npm | | allowed-hosts | ['npm'] | | allowed-schemes | ['https:'] | | validate-package-names | true | | empty-hostname | false | | allowed-package-name-aliases | string-width-cjs:string-width, strip-ansi-cjs:strip-ansi, wrap-ansi-cjs:wrap-ansi |

The allowed-package-name-aliases entries silence false positives from @isaacs/cliui — a transitive dep of glob/path-scurry that intentionally aliases CJS/ESM variants of string-width, strip-ansi, and wrap-ansi.

Notes

Requires Node 22+. Pair with @amedia/kragl-lockfile-lint to run on every kragl lint.