splice-auth
Splice some basic auth into a url string or url parsed object. Returns you what you give it.
install
npm install splice-auth --save
Example
var spliceAuth = ; var url = 'http://localhost:5984/whatever';var auth = 'what:dude'; var url = ; console //// Outputs:// http://what:dude@localhost:5984/whatever//