# gs-tectonic-superagent

> A tectonic driver for remote AJAX calls using Superagent with callbacks

Latest version **5.0.1** (published 2022-07-26) · MIT license · 0 weekly downloads

## Install

```sh
npm install gs-tectonic-superagent
pnpm add gs-tectonic-superagent
yarn add gs-tectonic-superagent
bun add gs-tectonic-superagent
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 5.0.1 |
| Published | 2022-07-26 |
| First published | 2018-02-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 39.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Tony Holdstock-Brown |
| Maintainers | gsbhalsted |
| Keywords | tectonic, tectonic, driver, async, data, loading, declarative, data, loading, react, reactjs, redux |

## Links

- npm: https://www.npmjs.com/package/gs-tectonic-superagent
- Repository: https://github.com/gsbhalsted/tectonic-superagent
- Homepage: https://github.com/gsbhalsted/tectonic-superagent#readme
- Issues: https://github.com/gsbhalsted/tectonic-superagent/issues
- npm.io page: https://npm.io/package/gs-tectonic-superagent

## Dependencies (1)

- [superagent](https://npm.io/package/superagent.md) ^8.0.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 5.0.1 (latest) — 2022-07-26
- 5.0.0 — 2022-04-16
- 4.1.1 — 2020-07-06
- 3.5.0 — 2019-06-26
- 3.4.1 — 2019-03-08
- 3.3.3 — 2018-06-18
- 3.3.2 — 2018-05-08
- 3.0.4 — 2018-02-15
- 3.0.3 — 2018-02-15
- 3.0.2 — 2018-02-15
- 3.0.1 — 2018-02-15

## README

# tectonic-superagent

A superagent driver for [tectonic](https://github.com/tonyhb/tectonic).

# Usage


Basic usage:

```js
const manager = new Manager({
  drivers: {
    fromSuperagent: new TectonicSuperagent()
});
```

Customization - all keys are optional:

```js
const manager = new Manager({
  drivers: {
    fromSuperagent: new TectonicSuperagent({
	  // custom request modifier, used to manipulate the superagent request
	  // before it's sent over.
	  request: (r) => r.set('Authorization', 'Bearer xyz'),
	  // custom callback called with superagent err each time a request fails.
	  // useful if you need to intercept 401 errors to redirect to a login page,
	  // for example.
	  onError: (err) => {}
	})
  }
});
```

---
_Source: https://npm.io/package/gs-tectonic-superagent · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
