# superagent-response-time

> A plugin for superagent that outputs a requests response time in milliseconds.

Latest version **1.0.3** (published 2016-11-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install superagent-response-time
pnpm add superagent-response-time
yarn add superagent-response-time
bun add superagent-response-time
```

## 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 | 1.0.3 |
| Published | 2016-11-15 |
| First published | 2016-11-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Dan Billingham |
| Maintainers | dbillinghamuk |
| Keywords | responseTime, superagent |

## Links

- npm: https://www.npmjs.com/package/superagent-response-time
- Repository: https://github.com/dbillingham/superagent-response-time
- Homepage: https://github.com/dbillingham/superagent-response-time#readme
- Issues: https://github.com/dbillingham/superagent-response-time/issues
- npm.io page: https://npm.io/package/superagent-response-time

## Recent versions

- 1.0.3 (latest) — 2016-11-15
- 1.0.2 — 2016-11-15
- 1.0.1 — 2016-11-15
- 1.0.0 — 2016-11-15

## README

# superagent-response-time

  A plugin for superagent that outputs a requests response time in milliseconds.

## Installation

  Install with [npm](http://npmjs.org):

    $ npm i superagent-response-time

## Usage

```js
import request from 'superagent';
import responseTime from 'superagent-response-time';

const callback = (req, time) => {
  console.log(time); //180.25
}

request
  .get('/some-url')
  .use(responseTime(callback)) //Add the plugin to the request
  .end(function(err, res){
    // Do something
  });
```

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