Skip to main content
Module

x/molt/mod.ts>parse

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

Parse properties of a dependency from the given URL.

Examples

Example 1

const { name, version, path } = Dependency.parse(
  new URL("https://deno.land/std@0.200.0/fs/mod.ts")
);
// -> { name: "deno.land/std", version: "0.200.0", path: "/fs/mod.ts" }

Parameters

url: string | URL

Returns

Dependency