each-dep
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i each-dep

Weekly Downloads

30

Version

1.2.0

License

MIT

Unpacked Size

84.9 kB

Total Files

18

Last publish

Collaborators

  • stagas