Comparing version 1.1.3 to 1.1.4
/*! | ||
* | ||
* LangIp v1.1.3 | ||
* LangIp v1.1.4 | ||
* url https://github.com/dalirnet/langip#readme | ||
@@ -5,0 +5,0 @@ * file /dist/isAr.js |
/*! | ||
* | ||
* LangIp v1.1.3 | ||
* LangIp v1.1.4 | ||
* url https://github.com/dalirnet/langip#readme | ||
@@ -5,0 +5,0 @@ * file /dist/isFa.js |
/*! | ||
* | ||
* LangIp v1.1.3 | ||
* LangIp v1.1.4 | ||
* url https://github.com/dalirnet/langip#readme | ||
@@ -5,0 +5,0 @@ * file /dist/isKo.js |
/*! | ||
* | ||
* LangIp v1.1.3 | ||
* LangIp v1.1.4 | ||
* url https://github.com/dalirnet/langip#readme | ||
@@ -5,0 +5,0 @@ * file /dist/isTr.js |
{ | ||
"name": "langip", | ||
"version": "1.1.3", | ||
"version": "1.1.4", | ||
"description": "Detect language with IP address", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -64,15 +64,2 @@ #### Detect language with IP address (langip) | ||
```javascript | ||
/* async await */ | ||
async () => { | ||
let lang = await langip.detect("8.8.8.8") /* detect(ip, fallback, target) */ | ||
console.log(lang) /* En */ | ||
}) | ||
/* promise */ | ||
langip.detect("103.127.119.132").then((lang) => { | ||
console.log(lang) /* Fa */ | ||
}) | ||
/* | ||
@@ -93,2 +80,13 @@ detect( | ||
*/ | ||
/* async await */ | ||
async () => { | ||
let lang = await langip.detect("8.8.8.8") /* detect(ip, fallback, target) */ | ||
console.log(lang) /* En */ | ||
}) | ||
/* promise */ | ||
langip.detect("103.127.119.132").then((lang) => { | ||
console.log(lang) /* Fa */ | ||
}) | ||
``` | ||
@@ -95,0 +93,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
2141594
394