npm.io
1.2.0 • Published 4 years ago

each-dep

Licence
MIT
Version
1.2.0
Deps
3
Size
83 kB
Vulns
0
Weekly
0
Stars
1

each-dep

Async iterator walk of a file's dependencies.

npm i each-dep pnpm add each-dep yarn add each-dep

API

# EachDepOptions

    # alias

      Record<string, string>

    # cache

      Map<string, {

      # ids

        readonly [ string, string ] []

      # source

        string

      }>

    # entrySource

      string

    # external

      boolean

# eachDep(entryFile, options, seen)

    # entryFile

      string

    # options  =  {}
    # seen  =  ...

      Set<string>

    eachDep(entryFile, options, seen)  =>

      AsyncGenerator<string, void, undefined>

Credits

Contributing

Fork or edit and submit a PR.

All contributions are welcome!

License

MIT 2022 stagas