Printer Logo

Printer

Creating Superagent Flows

The superagent command automatically injects a superagent request into a component. You can specify between POST, PATCH, PUT, DELETE, GET for requests.

λ Usage
λ printer superagent [type] [path]
λ Example Usage
λ printer superagent post components/test
λ This command then updates
λ components/test.tsx
λ ...

This is what components/example.tsx looks like before the superagent injection.

This is what components/example.tsx looks like after the superagent injection.