Skip to main content
Home

Built and signed on GitHub Actions

Works with
This package works with DenoIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score100%
Publisheda year ago (1.1.0)

A static code analysis tool for JavaScript and TypeScript.

function asURL
asURL(
path: string,
base?: string,
): URL

Given a path and an optional base to use for a relative path, return a file URL for the path.

base defaults to Deno.cwd(). If base is not absolute it will throw.

Parameters

path: string
optional
base: string

Return Type

asURL(
paths: string[],
base?: string,
): URL[]

Given an array of paths and an optional base to use for relative paths, return an array of file URLs for the paths.

base defaults to Deno.cwd(). If base is not absolute it will throw.

Parameters

paths: string[]
optional
base: string

Return Type

URL[]

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@higher-order-testing/nocuous

Import symbol

import { asURL } from "@higher-order-testing/nocuous";
or

Import directly with a jsr specifier

import { asURL } from "jsr:@higher-order-testing/nocuous";

Add Package

pnpm i jsr:@higher-order-testing/nocuous
or (using pnpm 10.8 or older)
pnpm dlx jsr add @higher-order-testing/nocuous

Import symbol

import { asURL } from "@higher-order-testing/nocuous";

Add Package

yarn add jsr:@higher-order-testing/nocuous
or (using Yarn 4.8 or older)
yarn dlx jsr add @higher-order-testing/nocuous

Import symbol

import { asURL } from "@higher-order-testing/nocuous";

Add Package

vlt install jsr:@higher-order-testing/nocuous

Import symbol

import { asURL } from "@higher-order-testing/nocuous";

Add Package

npx jsr add @higher-order-testing/nocuous

Import symbol

import { asURL } from "@higher-order-testing/nocuous";

Add Package

bunx jsr add @higher-order-testing/nocuous

Import symbol

import { asURL } from "@higher-order-testing/nocuous";