@nouro/flow
v0.0.11
Published
Nouro flow package, allows to execute flows
Downloads
4
Readme
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);
}