@dot-store/spawn
Spawn commands with dot-store
.
Create store
import dotStore from "dot-store"
import spawn from "@dot-store/spawn"
const store = spawn(dotStore())
Spawn a command
await store.spawn("output", "echo", "hi")
store.get("output")
// {
// args: ["hi"],
// code: 0,
// command: "echo",
// out: "hi\r\n",
// signal: 0
// }