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

ip-geoinfo

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ip-geoinfo

Get geolocation information about an IP Address

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Built with Grunt Build Status Code Climate

ip-geoinfo

Get geolocation information about an IP Address using promise.

Installation

$ npm install ip-geoinfo --save

Dependencies

$ npm install require --save
$ npm install require-promise --save
$ npm install ip-regex --save

Usuage

var getgeoip = require('ip-geoinfo');
var ipAddress = '8.8.8.8';

getgeoip(ipAddress).then(function (geoData) {
    console.log(geoData);
    /*=>{ ip: '8.8.8.8',
            city: 'Mountain View',
            region: 'California',
            country: 'US',
            country_name: 'United States',
            postal: '94035',
            latitude: 37.386,
            longitude: -122.0838,
            timezone: 'America/Los_Angeles' }  */
});

Features

  • Returns geolocation information in JSON format.
  • Validates IP address (New)

License

MIT © Bharathvaj Ganesan

Keywords

FAQs

Package last updated on 04 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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