包详细信息

input-from-script

JoshuaKGoldberg31.7kMIT0.5.4

create input that runs a script.

自述文件

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.