0.1.0 • Published 5 months ago
@nouro/flow v0.1.0
Nouro flow package, which allows to execute flows
To execute simple flow:
import { FlowSimple } from "@nouro/flow";
const apiKey = process.env.FLOW_ENV_KEY;
const flow = new FlowSimple(apiKey);
// Returns response
const res = await flow.execute(payload);
for (const chunk of res.body) {
    console.log(chunk);
}To execute edge flow:
import { FlowEdge } from "@nouro/flow";
const apiKey = process.env.FLOW_ENV_KEY;
const flow = new FlowEdge(apiKey);
// Returns response
const res = await flow.execute(payload);
for (const chunk of res.body) {
    console.log(chunk);
}