Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/dmm/src/services/module_service.ts>default

Lightweight Deno Module Manager
Latest
class default
import { default } from "https://deno.land/x/dmm@v2.1.2/src/services/module_service.ts";

Static Methods

private
constructDataForDenoImport(importLine: string): Promise<IModule>
private
constructDataForGithubImport(importLine: string): Promise<IModule>
private
constructDataForNestImport(importLine: string): Promise<IModule>
private
constructDataForUnpkgImport(importLine: string): Promise<IModule>
private
standardiseVersion(importedVersion: string, latestVersion: string): string

Keeps the latest release string in-line with the imported version. Latest release will contain or lose the "v" prefix to match the imported version

constructModulesDataFromDeps(depsContent: string): Promise<IModule[]>

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