This package has been archived, and as such it is read-only.
Built and signed on GitHub ActionsBuilt and signed on GitHub Actions
Built and signed on GitHub Actions
latest
denoland/stdDEPRECATED: now use path APIs directly
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
JSR Score
100%
Published
3 months ago (0.225.1)
Deprecated
Use functions from
@std/path/posix
instead (examples included). @std/url
will be removed in the future.
Utilities for working with
URL
s.
import { basename, join, normalize } from "@std/url"; import { assertEquals } from "@std/assert"; const url = new URL("https:///deno.land///std//assert//.//mod.ts"); const normalizedUrl = normalize(url); assertEquals(normalizedUrl.href, "https://deno.land/std/assert/mod.ts"); assertEquals(basename(normalizedUrl), "mod.ts"); const joinedUrl = join(normalizedUrl, "..", "..", "async", "retry.ts"); assertEquals(joinedUrl.href, "https://deno.land/std/async/retry.ts");
Built and signed on
View transparency logGitHub Actions
Add Package
deno add jsr:@std/url
Import symbol
import * as url from "@std/url";
---- OR ----
Import directly with a jsr specifier
import * as url from "jsr:@std/url";
Add Package
npx jsr add @std/url
Import symbol
import * as url from "@std/url";
Add Package
yarn dlx jsr add @std/url
Import symbol
import * as url from "@std/url";
Add Package
pnpm dlx jsr add @std/url
Import symbol
import * as url from "@std/url";
Add Package
bunx jsr add @std/url
Import symbol
import * as url from "@std/url";