Skip to main content
Module

x/molt/mod.ts>toUrl

Update dependencies the Deno way
Go to Latest
function toUrl
Re-export
import { toUrl } from "https://deno.land/x/molt@0.16.3/mod.ts";

Convert the given dependency to a URL string.

Examples

Example 1

const uri = toURL({
  protocol: "https:",
  name: "deno.land/std",
  version: "1.0.0",
  path: "/fs/mod.ts",
});
// -> "https://deno.land/std@1.0.0/fs/mod.ts"

Returns

string