Skip to main content
Module

x/deno_graph/mod.ts>parseModule

The module graph logic for Deno CLI
Latest
function parseModule
import { parseModule } from "https://deno.land/x/deno_graph@0.69.6/mod.ts";

Parse a module based on the supplied information and return its analyzed representation. If an error is encountered when parsing, the function will throw.

Parameters

specifier: string

The URL text specifier to use when parsing the module.

content: Uint8Array

The content of the module to be parsed.

optional
options: ParseModuleOptions = [UNSUPPORTED]

Options to use when parsing the module.