package
Bingo input that reads a file as text.
npm install input-from-fileGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Estimated unpacked size across 2 packages.
5.9 MB
Includes dependencies.
Bingo input that reads a file as text.
npm i input-from-fileimport { inputFromFile } from 'input-from-file';
await take(inputFromFile, { filePath: 'data.txt' });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 fileSee create.bingo > Templates > Concepts > Inputs for more documentation on Inputs.
mfaith
michael.faith@gmail.com