workflow.datapackage.load.md
January 18, 2023 ยท View on GitHub
Home > @datashaper/workflow > DataPackage > load
DataPackage.load() method
Load the data-package from an archive of files, usually hydrated from a zip.
The load process occurs in stages.
In the first stage, the datapackage.json file is loaded and recursed to create a hierarchy of objects that represent the resource tree.
In the second stage, we walk the resource tree and link together resources that have cross-references.
Signature:
load(files: Map<string, Blob>, quiet?: boolean): Promise<void>;
Parameters
| Parameter | Type | Description |
|---|---|---|
| files | Map<string, Blob> | The files in the archive |
| quiet | boolean | (Optional) If true, will not emit an onChange event |
Returns:
Promise<void>