Skip to main content
Module

x/molt/mod.ts>writeAll

Update dependencies the Deno way
Go to Latest
function writeAll
import { writeAll } from "https://deno.land/x/molt@0.11.3/mod.ts";

Write the given array of DependencyUpdate to files.

Examples

Example 1

await writeAll(updates, {
  onWrite: (file) => {
    console.log(`Updated ${file.specifier}`);
  },
});

Parameters

updates: DependencyUpdate[]
optional
options: { onWrite?: (file: FileUpdate) => void | Promise<void>; }