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