Initial commit for OpenECOMP SDN-C OA&M
[sdnc/oam.git] / dgbuilder / dgeflows / node_modules / morgan / node_modules / basic-auth / Readme.md
1 # basic-auth
2
3   Generic basic auth Authorization header field parser for whatever.
4
5 ## Installation
6
7 ```
8 $ npm install basic-auth
9 ```
10
11 ## Example
12
13   Pass a node request or koa Context object to the module exported. If
14   parsing fails `undefined` is returned, otherwise an object with
15   `.name` and `.pass`.
16
17 ```js
18 var auth = require('basic-auth');
19 var user = auth(req);
20 // => { name: 'something', pass: 'whatever' }
21
22 ```
23
24 # License
25
26   MIT