UNPKG

@dpkit/core

Version:

Fast TypeScript data management framework built on top of the Data Package standard and Polars DataFrames

8 lines (6 loc) 277 B
import { isRemotePath } from "../general/index.ts" import type { Resource } from "./Resource.ts" export function isRemoteResource(resource: Resource) { const path = Array.isArray(resource.path) ? resource.path[0] : resource.path return path ? isRemotePath(path) : false }