# Popsicle Basic Auth

[![NPM version][npm-image]][npm-url]
[![NPM downloads][downloads-image]][downloads-url]
[![Build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]

> Add basic authentication to requests.

## Installation

```
npm install popsicle-basic-auth --save
```

## Usage

```js
import { middleware, toFetch } from "popsicle";
import { Request } from "popsicle/dist/node";
import { auth } from "popsicle-basic-auth";

const fetch = toFetch([auth("blakeembrey", "hunter2"), middleware], Request);
```

## License

MIT

[npm-image]: https://img.shields.io/npm/v/popsicle-basic-auth.svg?style=flat
[npm-url]: https://npmjs.org/package/popsicle-basic-auth
[downloads-image]: https://img.shields.io/npm/dm/popsicle-basic-auth.svg?style=flat
[downloads-url]: https://npmjs.org/package/popsicle-basic-auth
[travis-image]: https://img.shields.io/travis/serviejs/popsicle-basic-auth.svg?style=flat
[travis-url]: https://travis-ci.org/serviejs/popsicle-basic-auth
[coveralls-image]: https://img.shields.io/coveralls/serviejs/popsicle-basic-auth.svg?style=flat
[coveralls-url]: https://coveralls.io/r/serviejs/popsicle-basic-auth?branch=master
