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

x/cav/deps.ts>graph.parseModule

A server framework for Deno
Go to Latest
function graph.parseModule
import { graph } from "https://deno.land/x/cav@0.2.3/deps.ts";
const { parseModule } = graph;

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.