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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.5.48,510latest

Version History

VersionDownloads (Last 7 Days)Published
0.5.48,510
0.5.30
0.5.21
0.5.10
0.5.012
0.4.10
0.4.00
0.2.00
0.1.0-alpha.40
0.1.0-alpha.30

Package Sidebar

Install

npm i input-from-script

Weekly Downloads

5,891

Version

0.5.4

License

MIT

Unpacked Size

5.96 kB

Total Files

11

Last publish

Collaborators

  • joshuakgoldberg