Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pkg-fence

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pkg-fence

A command line tool that glance over package dependencies.

  • 0.6.0-rc.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
Maintainers
1
Weekly downloads
 
Created
Source

pkg-fence

jsr npm codecov

A command line tool that glance over package lockfile.

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

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

FAQs

Package last updated on 19 Jul 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc