getDependencyGraph
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v63View latest version
This val allows for dependency graph exploration.
Iteratively explores the dependency graph of a val and its children, returning the results.
arguments
- valUrlOrSlug
string
- the full val url or slug (author/name
) of the val
returns
An object containing:
- dependencyMap
Map<string, string[]>
- A map of vals (by id) to dependencies (vals or non-val id) - moduleMap
Map<string, Module>
- A map of modules (by val or non-val id) to module information. Module object contains: -
- slug
string
- the slug of the module, how it should be displayed visually
- slug
-
- id
string
- the id of the module, corresponding to how it's displayed in the code, normally as a url.
- id
-
- websiteUrl
string
- the website link for the module, a normally a link to either valtown or npm.
- websiteUrl
-
- category
string|null
- the category of the module, such as "valtown", "esm.sh", or "npm". Those without a predefined category are in null.
- category
Migrated from folder: dependencyGraph/getDependencyGraph