Skip to main content
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.0.21/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.