UNPKG

@dpkit/core

Version:

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

13 lines (11 loc) 394 B
import { loadDescriptor } from "../general/index.ts" import { assertDialect } from "./assert.ts" /** * Load a Dialect descriptor (JSON Object) from a file or URL * Ensures the descriptor is valid against its profile */ export async function loadDialect(path: string) { const { descriptor } = await loadDescriptor(path) const dialect = await assertDialect(descriptor) return dialect }