UNPKG

itk-wasm

Version:

High-performance spatial analysis in a web browser, Node.js, and reproducible execution across programming languages and hardware architectures.

10 lines (7 loc) 264 B
import path from 'path' import { runPipelineNode } from '../../dist/index-node.js' const pipelinePath = path.resolve(process.argv[2]) const { returnValue, stdout, stderr } = await runPipelineNode(pipelinePath, [ '--interface-json' ]) process.exit(returnValue)