🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

input-from-file

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

input-from-file

Bingo input that reads a file as text.

latest
Source
npmnpm
Version
0.5.5
Version published
Weekly downloads
20K
110.58%
Maintainers
1
Weekly downloads
 
Created
Source

input-from-file

Bingo input that reads a file as text.

🤝 Code of Conduct: Kept 📝 License: MIT 📦 npm version 💪 TypeScript: Strict

npm i input-from-file
import { 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 file
  • string: The text contents of the file

See create.bingo > Templates > Concepts > Inputs for more documentation on Inputs.

FAQs

Package last updated on 02 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts