Skip to main content
Module

x/molt/mod.ts

🦕 A Deno module to update dependencies with deno_graph
Go to Latest
import * as molt from "https://deno.land/x/molt@0.9.1/mod.ts";

A module to update dependencies in Deno projects using deno_graph.

Example

To update all dependencies in a module and write the changes to local files:

import {
  DependencyUpdate,
  FileUpdate,
} from "https://deno.land/x/molt@{VERSION}/mod.ts";

const updates = await DependencyUpdate.collect("./mod.ts", {
  importMap: "./deno.json",
});

const results = FileUpdate.collect(updates);
await FileUpdate.writeAll(results);

Interfaces

Representation of a dependency update.