Skip to main content

node_modules

Function node_modules 

Source
pub fn node_modules(
    package_json: &Path,
    dest: &Path,
) -> Result<Vec<Resolved>, Box<dyn Error>>
Expand description

Resolve package_json’s dependencies transitively, verify each tarball’s registry dist.integrity (sha512), and extract the flat tree into <dest>/node_modules/. Returns the resolved set (sorted by name). A package whose registry metadata advertises no sha512 is refused rather than installed unverified. Skips all work when the resolved set is unchanged.