UNPKG

@seasketch/geoprocessing

Version:

Geoprocessing and reporting framework for SeaSketch 2.0

10 lines 394 B
import fs from "fs-extra"; /** * Writes the output of running a function with a sketch to file */ export async function writeResultOutput(results, functionName, name) { const folder = "examples/output/" + name; await fs.ensureDirSync(folder); fs.writeFile(folder + "/" + functionName + ".json", JSON.stringify(results, null, " ")); } //# sourceMappingURL=writeResultOutput.js.map