Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ip-locator-ex

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ip-locator-ex - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

package.json

@@ -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 @@ ---------

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc