Sha256: 477ff0955823ae74b19b74b6897b63a94bbcee8432fb719b3864bf1f1919f544

Contents?: true

Size: 439 Bytes

Versions: 17

Compression:

Stored size: 439 Bytes

Contents

# basic-auth

  Generic basic auth Authorization header field parser for whatever.

## Installation

```
$ npm install basic-auth
```

## Example

  Pass a node request or koa Context object to the module exported. If
  parsing fails `undefined` is returned, otherwise an object with
  `.name` and `.pass`.

```js
var auth = require('basic-auth');
var user = auth(req);
// => { name: 'something', pass: 'whatever' }

```

# License

  MIT

Version data entries

17 entries across 17 versions & 2 rubygems

Version Path
hooch-0.4.2 jasmine/node_modules/karma/node_modules/connect/node_modules/morgan/node_modules/basic-auth/Readme.md
hooch-0.4.1 jasmine/node_modules/karma/node_modules/connect/node_modules/morgan/node_modules/basic-auth/Readme.md
hooch-0.4.0 jasmine/node_modules/karma/node_modules/connect/node_modules/morgan/node_modules/basic-auth/Readme.md
hooch-0.3.0 jasmine/node_modules/karma/node_modules/connect/node_modules/morgan/node_modules/basic-auth/Readme.md
hooch-0.2.1 jasmine/node_modules/karma/node_modules/connect/node_modules/morgan/node_modules/basic-auth/Readme.md
hooch-0.2.0 jasmine/node_modules/karma/node_modules/connect/node_modules/morgan/node_modules/basic-auth/Readme.md
hooch-0.1.0 jasmine/node_modules/karma/node_modules/connect/node_modules/morgan/node_modules/basic-auth/Readme.md
hooch-0.0.8 jasmine/node_modules/karma/node_modules/connect/node_modules/morgan/node_modules/basic-auth/Readme.md
hooch-0.0.7 jasmine/node_modules/karma/node_modules/connect/node_modules/morgan/node_modules/basic-auth/Readme.md
hooch-0.0.6 jasmine/node_modules/karma/node_modules/connect/node_modules/morgan/node_modules/basic-auth/Readme.md
entangled-0.0.16 spec/dummy/public/node_modules/karma/node_modules/connect/node_modules/morgan/node_modules/basic-auth/Readme.md
entangled-0.0.15 spec/dummy/public/node_modules/karma/node_modules/connect/node_modules/morgan/node_modules/basic-auth/Readme.md
entangled-0.0.14 spec/dummy/public/node_modules/karma/node_modules/connect/node_modules/morgan/node_modules/basic-auth/Readme.md
entangled-0.0.13 spec/dummy/public/node_modules/karma/node_modules/connect/node_modules/morgan/node_modules/basic-auth/Readme.md
entangled-0.0.12 spec/dummy/public/node_modules/karma/node_modules/connect/node_modules/morgan/node_modules/basic-auth/Readme.md
entangled-0.0.11 spec/dummy/public/node_modules/karma/node_modules/connect/node_modules/morgan/node_modules/basic-auth/Readme.md
entangled-0.0.10 spec/dummy/public/node_modules/karma/node_modules/connect/node_modules/morgan/node_modules/basic-auth/Readme.md