Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
method default.constructModulesDataFromDeps
import { default } from "https://deno.land/x/dmm@v2.1.2/src/services/module_service.ts";

Constructs the object representations for the given modules, that contains all the information about those modules needed to: run any queries on them, or log information about them. 1. Reads deps.ts and turns each dependency into a module object 2. Adds a the github url to each object using Deno's database.json and the modules name 3. Adds the latest version to each object using the github url

Parameters

depsContent: string
  • The raw text content of the dependency file.

Returns

Promise<IModule[]>

An array of objects, with each object containing information about each module