Skip to main content

enumerate_node_modules

Function enumerate_node_modules 

Source
pub async fn enumerate_node_modules(cwd: &Path) -> Vec<CrawledPackage>
Expand description

Enumerate all packages in a node_modules directory.

This is a convenience wrapper around NpmCrawler::crawl_all that creates a crawler with default options rooted at the given cwd.