Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
imcotton/pkg-fenceA command line tool that glance over package dependencies.
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers




JSR Score
70%
Published
a year ago (0.6.6)
pkg-fence
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
frompackage-lock.jsonornpm-shrinkwrap.json -
deno-info
fromdeno info npm:<pkg> -
(otherwise)
one name per line
Exit Code
0for empty results1for anything matched
Built-in Presets
--all--lodash: pkg naming starts bylodash.or equals tolodash--nolyfill: list of names from https://github.com/SukkaW/nolyfill (1.0.34)--relief: list of names from https://github.com/es-tooling/module-replacements (2.5.0)--relief-native--relief-micro--relief-preferred
--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 ...ornpm why ...to make further inspection
Results are unordered, possible in duplications.
- use
sort,uniq, orgrepetc...
License
AGPLv3
Built and signed on
GitHub Actions
Add Package
deno add jsr:@imcotton/pkg-fence
Import symbol
import * as pkg_fence from "@imcotton/pkg-fence";
Import directly with a jsr specifier
import * as pkg_fence from "jsr:@imcotton/pkg-fence";
Add Package
pnpm i jsr:@imcotton/pkg-fence
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
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";