Get credentials from basic authorization header.
$ npm install jm-basic-auth-credentials
//http authorization header for 'foo:bar'
const header = 'Basic Zm9vOmJhcg=='
const getCredentials = require('jm-basic-auth-credentials')
const {username, password} = getCredentials(header)
//username is now 'foo', password is 'bar'
MIT