input-from-script
v0.1.0-alpha.4
Published
create input that runs a script.
Downloads
1,029
Readme
npm i input-from-script
import { inputFromScript } from "input-from-script";
await take(inputFromScript, { command: "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 scriptResult
: The type fromexeca
, including thestdout
property
See create-josh.vercel.app > Engine > Runtime > Inputs for more documentation on Inputs.