0.2.1 • Published 5 years ago
@determapp/viewer-data-generator v0.2.1
DetermApp-Viewer-Data-Generator
This converts DetermApp project data to viewer data.
API
export const convertForViewer = async ({
project,
projectId,
readImageFile,
urlBlacklist
}: {
project: ProjectStatus;
projectId: string;
readImageFile: (filename: string) => Promise<Buffer>;
urlBlacklist: Array<string>;
}): Promise<Project> => {
You can get the urlBlacklist from @determapp/viewer
.
Commands
npm run build
- builds this component
- executed as
prepare
hook