UNPKG

@dpkit/core

Version:

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

19 lines (15 loc) 493 B
import type { Package } from "./Package.ts" import { loadPackageDescriptor } from "./load.ts" /** * Merges a system data package into a user data package if provided */ export async function mergePackages(options: { systemPackage: Package userPackagePath?: string }) { const systemPackage = options.systemPackage const userPackage = options.userPackagePath ? await loadPackageDescriptor(options.userPackagePath) : undefined return { ...systemPackage, ...userPackage } }