add-affiliate-querystring

1.0.2 • Public • Published

Doesn't throw errors on bad urls (just returns them without modification)

Will only apply changes on the domain/host you specify.

Usage

 
var createAdderFunction = require('./')
var addAffiliateCode = createAdderFunction('shoppingsite.com', 'code', 'my-money-making-code')
 
addAffiliateCode('http://shoppingsite.com/thing') // => 'http://shoppingsite.com/thing?code=my-money-making-code'
 
addAffiliateCode('http://google.com/thing') // => 'http://google.com/thing'

License

WTFPL

Package Sidebar

Install

npm i add-affiliate-querystring

Weekly Downloads

0

Version

1.0.2

License

WTFPL

Last publish

Collaborators

  • tehshrike