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

x/molt/lib/file.ts>write

Update dependencies the Deno way
Latest
function write
import { write } from "https://deno.land/x/molt@0.17.2/lib/file.ts";

Write the given CollectResult to file system.

Examples

Example 1

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

Parameters

optional
options: WriteOptions = [UNSUPPORTED]