ip-locator-ex
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -35,3 +35,3 @@ { | ||
"main": "index.js", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"engines": { | ||
@@ -38,0 +38,0 @@ "node": "> 8.0" |
@@ -30,6 +30,28 @@ # ip-locator | ||
ipLocator.getDomainOrIPDetails(<IpOrhostname>,<ResponseType>, function (err, data) { | ||
console.log(data) | ||
ipLocator.getDomainOrIPDetails(IpOrhostnameString, ResponseTypeString, function (err, data, quota) { | ||
console.log(data); | ||
console.log(quota); | ||
}); | ||
ipLocator.getDomainOrIPDetails(IpOrhostnameString, ResponseTypeString) | ||
.then(function(result) { | ||
console.log(result.data); | ||
console.log(result.quota); | ||
}) | ||
.catch(function(error) { | ||
console.log(error); | ||
}); | ||
const result = await ipLocator.getDomainOrIPDetails(IpOrhostnameString, ResponseTypeString); | ||
``` | ||
Quota | ||
--------- | ||
```js | ||
{ | ||
secondsToReset, // how many secons until remaining requests count will be reset | ||
requestsRemaining // how many requests can be sent | ||
}; | ||
``` | ||
Response Types | ||
@@ -36,0 +58,0 @@ --------- |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12461
96