# amino-driver-http

> HTTP driver for amino

Latest version **0.4.1** (published 2012-05-05) · 0 weekly downloads

## Install

```sh
npm install amino-driver-http
pnpm add amino-driver-http
yarn add amino-driver-http
bun add amino-driver-http
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.1 |
| Published | 2012-05-05 |
| First published | 2012-05-03 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.6.0 |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| Author | Carlos Rodriguez |
| Maintainers | carlos8f |

## Links

- npm: https://www.npmjs.com/package/amino-driver-http
- Repository: https://github.com/cantina/amino-driver-http
- Issues: https://github.com/cantina/amino-driver-http/issues
- npm.io page: https://npm.io/package/amino-driver-http

## Dependencies (3)

- [request](https://npm.io/package/request.md) ~2.9.202
- [director](https://npm.io/package/director.md) ~1.0.9-1
- [inherits](https://npm.io/package/inherits.md) ~1.0.0

## Recent versions

- 0.4.1 (latest) — 2012-05-05
- 0.4.0 — 2012-05-04
- 0.3.0 — 2012-05-04
- 0.2.0 — 2012-05-03

## README

amino-request-http allows you to use HTTP as a transport for
[amino](https://github.com/cantina/amino) requests.

Usage
-----

**serve-sprocket.js**

```javascript
// Create a sprocket service.
var amino = require('amino');

amino.respond('sprockets', function(router, spec) {
  // router is a director router.
  // @see https://github.com/flatiron/director
  router.get('/:id', function(id) {
    // amino adds the helpers json(), text(), and html().
    this.res.json({id: id});
  });
});
```

**get-sprocket.js**

```javascript
// Request a sprocket from the sprocket service.
var amino = require('amino');

// amino.request() is the same as github.com/mikeal/request, except
// it can handle the amino:// protocol, which uses virtual hosts defined
// with amino.respond().
amino.request('amino://sprockets/af920c').pipe(process.stdout);
```

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