Skip to content

Commit

Permalink
docs(readme): update readme and description
Browse files Browse the repository at this point in the history
  • Loading branch information
Jun711 committed Mar 6, 2018
1 parent 932d614 commit b242637
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,16 @@ This script can detect user's location based on IPs
and returns Amazon geotargeted URLs.

## Usage
```javascript
const amazonGeotargetService = new AmazonGeotargetService();
amazonGeotargetService.amazonGeotarget().then(res => console.log(res));

// To use it with a '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:
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "amazonGeotarget",
"version": "0.0.0-development",
"description": "It is to locate the location of a user",
"name": "amazon-geotarget",
"version": "1.0.0",
"description": "It detects users' location and returns the right amazon store url.",
"main": "src/index.js",
"scripts": {
"coverage": "nyc report --reporter=text-lcov | coveralls",
Expand Down

0 comments on commit b242637

Please sign in to comment.