Skip to content

Analyse and list all dependencies of an entrypoint as a stream

License

Notifications You must be signed in to change notification settings

holepunchto/dependency-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Analyse and list all dependencies of an entrypoint as a stream

Resources

License

Stars

Watchers

Forks

Packages

No packages published