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

x/deno_graph/mod.ts>parseModule

The module graph logic for Deno CLI
Go to Latest
function parseModule
import { parseModule } from "https://deno.land/x/deno_graph@0.50.0/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: string

The content of the module to be parsed.

optional
options: ParseModuleOptions = [UNSUPPORTED]

Options to use when parsing the module.