create
input that reads a file as JSON.
npm i input-from-file
import { inputFromFile } from "input-from-file";
await take(inputFromFile, { filePath: "data.txt" });
inputFromFile
takes a single argument, filePath
, of type string
.
See create-josh.vercel.app > Engine > Runtime > Inputs for more documentation on Inputs.