# hyperagent

> hyper+json client for node.js and the browser

Latest version **0.2.10** (published 2016-03-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install hyperagent
pnpm add hyperagent
yarn add hyperagent
bun add hyperagent
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.10 |
| Published | 2016-03-04 |
| First published | 2013-07-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Cameron Bytheway |
| Maintainers | camshaft, brannonlucas |
| Keywords | hyper, superagent |

## Links

- npm: https://www.npmjs.com/package/hyperagent
- Repository: https://github.com/hypergroup/hyperagent
- Homepage: https://github.com/hypergroup/hyperagent#readme
- Issues: https://github.com/hypergroup/hyperagent/issues
- npm.io page: https://npm.io/package/hyperagent

## Dependencies (5)

- [envs](https://npm.io/package/envs.md) ~0.1.2
- [hyper-path](https://npm.io/package/hyper-path.md) ^1.0.0
- [superagent](https://npm.io/package/superagent.md) https://github.com/visionmedia/superagent/archive/7395c9c014d6fffdea6f7d6df9841460175abc24.tar.gz
- [superagent-defaults](https://npm.io/package/superagent-defaults.md) ~0.1.2
- [hyper-client-superagent](https://npm.io/package/hyper-client-superagent.md) ^0.1.10

## Recent versions

- 0.2.10 (latest) — 2016-03-04
- 0.2.9 — 2015-05-06
- 0.2.8 — 2015-02-06
- 0.2.7 — 2014-10-21
- 0.2.6 — 2014-09-26
- 0.2.5 — 2014-09-26
- 0.2.4 — 2014-09-26
- 0.2.1 — 2014-05-08
- 0.2.0 — 2014-04-03
- 0.1.0 — 2013-07-14

## README

hyperagent
==========

hyper+json client for node.js and the browser.

Installation
------------

### Node

```sh
$ npm install hyperagent
```

### Component

```sh
$ component install hypergroup/hyperagent
```

Usage
-----

Call the hyperagent function, passing the root url of the hyper+json API.

```js
var hyperagent = require('hyperagent');

var client = hyperagent('http://api.example.com');
```

Use the client to traverse any paths

```js
client('.users.0.name', function(err, name) {
  console.log('Hello, ' + name);
});

client('.users.0.friends.0.friends.0.name', function(err, name) {
  console.log('Hello friend of a friend, ' + name);
});
```

```js
client.submit('.users.0.update', {name: 'Mike'}, function(err, body, res) {
  console.log(res);
});
```

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