amazon-geotarget

1.0.1 • Public • Published

Build Status Coverage Status

AmazonGeotarget

This script can detect user's location based on IPs and returns Amazon geotargeted URLs.

Usage

const amazonGeotargetService = new AmazonGeotargetService();
amazonGeotargetService.amazonGeotarget().then(res => console.log(res));  
  
// To use it with 'www.amazon.co.uk' as the default store
const amazonGeotargetService = new AmazonGeotargetService('www.amazon.co.uk');
amazonGeotargetService.amazonGeotarget().then(res => console.log(res));

Refer to index.html for usage on a webpage.

IP Sources

IP service providers: https://ipapi.co/
https://freegeoip.net/

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    1
  • 1.0.0
    1

Package Sidebar

Install

npm i amazon-geotarget

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

1.45 MB

Total Files

16

Last publish

Collaborators

  • jun711