input-from-script
TypeScript icon, indicating that this package has built-in type declarations

0.5.4 • Public • Published

input-from-script

Bingo input that runs a script.

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

npm i input-from-script
import { inputFromFetch } from "input-from-script";

await take(inputFromFetch, { resource: "npm whoami" });

Options

inputFromScript takes a single argument, command, of type string.

It runs the command with execa and returns either:

  • Error: If an error was caught running the script
  • Result: The type from execa, including the stdout property

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

Readme

Keywords

none

Package Sidebar

Install

npm i input-from-script

Weekly Downloads

8,523

Version

0.5.4

License

MIT

Unpacked Size

5.96 kB

Total Files

11

Last publish

Collaborators

  • joshuakgoldberg