Skip to main content
Home

Built and signed on GitHub Actions

A command line tool that glance over package dependencies.

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
70%
Published
a year ago (0.6.6)

pkg-fence

jsr npm codecov

A command line tool that glance over package dependencies.

Usage

Input source is reading from stdin.

cat package-lock.json | npx pkg-fence <...>

Auto-detect Input Format

  • npm
    from package-lock.json or npm-shrinkwrap.json

  • deno-info
    from deno info npm:<pkg>

  • (otherwise)
    one name per line

Exit Code

  • 0 for empty results
  • 1 for anything matched

Built-in Presets

--extra

to specify addition names:

--extra foo,bar
--extra foo    --extra bar

--ignore

to ignore some names:

--ignore foo,bar
--ignore foo    --ignore bar

--invert (-v)

invert the search result

Available

NPM

executable only

npx          pkg-fence
bun    x     pkg-fence
pnpm dlx     pkg-fence
yarn dlx     pkg-fence
deno run npm:pkg-fence

JSR

executable, multi ESM exports, Typing

deno run jsr:@imcotton/pkg-fence

Caveat

Does not differentiate between dev or non-dev dependencies.

  • use npm ls ... or npm why ... to make further inspection

Results are unordered, possible in duplications.

  • use sort, uniq, or grep etc...

License

AGPLv3

Built and signed on
GitHub Actions

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@imcotton/pkg-fence

Import symbol

import * as pkg_fence from "@imcotton/pkg-fence";
or

Import directly with a jsr specifier

import * as pkg_fence from "jsr:@imcotton/pkg-fence";

Add Package

pnpm i jsr:@imcotton/pkg-fence
or (using pnpm 10.8 or older)
pnpm dlx jsr add @imcotton/pkg-fence

Import symbol

import * as pkg_fence from "@imcotton/pkg-fence";

Add Package

yarn add jsr:@imcotton/pkg-fence
or (using Yarn 4.8 or older)
yarn dlx jsr add @imcotton/pkg-fence

Import symbol

import * as pkg_fence from "@imcotton/pkg-fence";

Add Package

vlt install jsr:@imcotton/pkg-fence

Import symbol

import * as pkg_fence from "@imcotton/pkg-fence";

Add Package

npx jsr add @imcotton/pkg-fence

Import symbol

import * as pkg_fence from "@imcotton/pkg-fence";

Add Package

bunx jsr add @imcotton/pkg-fence

Import symbol

import * as pkg_fence from "@imcotton/pkg-fence";