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

x/molt/lib/dependency.ts>stringify

Update dependencies the Deno way
Latest
function stringify
import { stringify } from "https://deno.land/x/molt@0.17.2/lib/dependency.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"

Parameters

dependency: Dependency
optional
includePath = [UNSUPPORTED]

Returns

string