MCPcopy
hub / github.com/imgly/background-removal-js / loadAsUrl

Function loadAsUrl

packages/node/src/resource.ts:8–10  ·  view source on GitHub ↗
(url: string, config: Config)

Source from the content-addressed store, hash-verified

6import { fileURLToPath } from 'url';
7
8async function loadAsUrl(url: string, config: Config) {
9 return URL.createObjectURL(await loadAsBlob(url, config));
10}
11
12async function loadFromURI(
13 uri: URL,

Callers

nothing calls this directly

Calls 1

loadAsBlobFunction · 0.70

Tested by

no test coverage detected