Code Monkey home page Code Monkey logo

affiliate-plugin-amazon's Introduction

AffiliatePluginAmazon

This plugin for the open source Affiliate package automatically affiliates Amazon URLs based upon locality.

Installation

$ npm i -S affiliate affiliate-plugin-amazon
$ yarn add affiliate affiliate-plugin-amazon

What It Can Do

Affiliate can modify the following link into any of the others.

<a href="https://www.amazon.co.jp/dp/B01MRZFBBH">Japan</a>
<a href="https://www.amazon.com/dp/B01MRZFBBH">USA</a>
<a href="https://www.amazon.de/dp/B01MRZFBBH">Germany</a>
<a href="https://www.amazon.co.uk/dp/B01MRZFBBH">UK</a>

If the user's primary language is Italian, all links would become:

<a href="https://www.amazon.it/dp/B01MRZFBBH?tag=italian-tag">My Locality</a>

Or url modification can be disabled:

<a href="https://www.amazon.co.jp/dp/B01MRZFBBH?tag=jp-tag">Japan</a>
<a href="https://www.amazon.com/dp/B01MRZFBBH?tag=us-tag">USA</a>
<a href="https://www.amazon.de/dp/B01MRZFBBH?tag=de-tag">Germany</a>
<a href="https://www.amazon.co.uk/dp/B01MRZFBBH?tag=gb-tag">UK</a>

Documentation

Plugin documentation available here: affiliate.js.org/plugins/amazon.

Affiliate is simple and quick to set up, even for more complex usage. Read the docs at: affiliate.js.org.

License

MIT (C) Russell Steadman. Learn more in the LICENSE file.

affiliate-plugin-amazon's People

Contributors

russellsteadman avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

affiliate-plugin-amazon's Issues

webpack import

how can i use this into webpack?

import affiliate from 'affiliate'; does not work

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.