Socket
Book a DemoInstallSign in
Socket

dependency-stream

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dependency-stream

Analyse and list all dependencies of an entrypoint as a stream

latest
Source
npmnpm
Version
2.3.0
Version published
Weekly downloads
517
54.33%
Maintainers
1
Weekly downloads
 
Created
Source

dependency-stream

Analyse and list all dependencies of an entrypoint as a stream

npm install dependency-stream

Usage

const DependencyStream = require('dependency-stream')

const d = new DependencyStream(drive, {
  entrypoint: '.', // thats the entrypoint to resolve
  preload: true, // preload as much as possible
  source: false, // include source in results
  strict: false, // if true, fail if something cannot be resolved
  conditions: [], // what conditions to apply to export maps
  builtins: setOrArray // set to the builtin modules of your runtime
})

for await (const data of d) {
  console.log(data) // the resolved dep
}

License

Apache-2.0

FAQs

Package last updated on 21 Nov 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