0.5.4 • Published 8 months ago
input-from-file-json v0.5.4
npm i input-from-file-jsonimport { inputFromFileJSON } from "input-from-file-json";
await take(inputFromFileJSON, { filePath: "data.json" });Options
inputFromFileJSON takes a single argument, filePath, of type string.
It reads the filePath from disk and returns either:
Error: If an error was caught reading or parsing the fileunknown: The result of runningJSON.parseon the file's text contents
See create.bingo > Templates > Concepts > Inputs for more documentation on Inputs.
0.5.4
8 months ago
0.5.3
8 months ago
0.5.2
8 months ago
0.5.1
8 months ago
0.5.0
8 months ago
0.4.1
8 months ago
0.4.0
8 months ago
0.2.0
9 months ago
0.1.0-alpha.4
10 months ago
0.1.0-alpha.3
10 months ago
0.1.0-alpha.2
10 months ago
0.1.0-alpha.1
11 months ago
0.1.0-alpha.0
11 months ago