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