BasicCredentials

Get user credentials from Basic Authentication method.

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
BasicCredentials
Minified + gzip package size for BasicCredentials in KB

Readme

#BasicCredentials

Get user credentials from Basic Authentication method.

##Installation

    $ npm install BasicCredentials

##Usage

There are some examples.

######Get User :

    var BasicCredentials = require('BasicCredentials');

    var basic = new BasicCredentials(req);


    basic.getUser(function(user){
            console.log(user);
    });

######Get Password:

    var BasicCredentials = require('BasicCredentials');

    var basic = new BasicCredentials(req);


    basic.getPassword(function(password){
        console.log(password);
    });

######Get Basic Token:

    var BasicCredentials = require('BasicCredentials');

    var basic = new BasicCredentials(req);


    basic.getToken(function(token){
        console.log(token);
    });

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.