import { collect } from "https://deno.land/x/molt@0.17.2/mod.ts";
Collect dependencies from the given module(s) or Deno configuration file(s). Local submodules are also checked recursively.
Examples
Example 1
Example 1
collect("mod.ts")
// -> Collect dependencies from mod.ts and its local submodules.
Example 2
Example 2
collect("deno.json")
// -> Collect dependencies from the import map specified in deno.json
Parameters
optional
options: CollectOptions = [UNSUPPORTED]- Options to customize the behavior.
Returns
Promise<CollectResult>
The list of dependencies.