Package Exports
- affiliate
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (affiliate) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Affiliate
Affiliate is a platform agnostic link affiliator. Simplify affiliating links with automatic affiliation in the browser. Affiliate works with libraries that mutate the DOM after the page loads, including React.
Installation
With NPM
$ npm i -S affiliate
With Yarn
$ yarn add affiliate
With a CDN
<script src="https://unpkg.com/affiliate@latest/dist/affiliate.js"></script>
With Bower
$ bower install -S affiliate
What It Can Do
Affiliate can modify the following link into any of the others.
<a href="https://example.com/shop/product/item-id">Buy this item</a>
Query tags:
<a href="https://example.com/shop/product/item-id?ref=my-tag">Buy this item</a>
URL Path:
<a href="https://example.com/shop/product/item-id/ref/my-tag">Buy this item</a>
Host Name:
<a href="https://my-tag.example.com/shop/product/item-id">Buy this item</a>
Documentation
Plugins
License
MIT (C) Russell Steadman. Learn more in the LICENSE file.
Support Me
Like this project? Buy me a cup of coffee. ☕ Here are more of my projects.