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

country-iso

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

country-iso - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

4

package.json
{
"name": "country-iso",
"version": "2.0.1",
"version": "2.0.2",
"description": "Get ISO 3166-1 alpha-3 country code for geographic coordinates.",

@@ -23,3 +23,3 @@ "main": "index.js",

"test": "xo && nyc ava --verbose",
"coverage": "nyc npm test && nyc report --reporter=text-lcov > coverage/coverage.lcov && codecov"
"coverage": "nyc npm test && nyc report --reporter=text-lcov > coverage.lcov && codecov"
},

@@ -26,0 +26,0 @@ "repository": {

@@ -11,8 +11,17 @@ # country-iso

## Usage
You can query any `(lat,lng)` pair on the earth. It also works for territorial waters and disputed countries.
```javascript
const countryIso = require('country-iso');
// Query a point.
// Query a point in Italy.
countryIso.get(41.9028, 12.4964);
// => ['ITA']
// Query a disputed country.
countryIso.get(24, -14);
// => ['ESH', 'MAR']
// Query a point somewhere in Atlantic Ocean.
countryIso.get(40, -40);
// => []
```

@@ -19,0 +28,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