splice-auth

0.0.4 • Public • Published

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 = require('splice-auth');
 
var url = 'http://localhost:5984/whatever';
var auth = 'what:dude';
 
var url = spliceAuth(url, auth);
 
console.log(url)
 
//
// Outputs:
// http://what:dude@localhost:5984/whatever
//
 

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    3
  • 0.0.3
    2
  • 0.0.2
    2
  • 0.0.1
    2

Package Sidebar

Install

npm i splice-auth

Weekly Downloads

5

Version

0.0.4

License

MIT

Last publish

Collaborators

  • jcrugzz