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 1.0.2 to 1.0.3

2

index.js

@@ -20,3 +20,3 @@ 'use strict';

* @param {Number} lng Longitude of the point
* @return {String[]} Array of ISO 3166 alpha-3 country code for the geographic coordinates
* @return {Promise<String[]>} Promises an array of ISO 3166 alpha-3 country code for the geographic coordinates
*/

@@ -23,0 +23,0 @@ function getCode(lat, lng) {

{
"name": "country-iso",
"version": "1.0.2",
"version": "1.0.3",
"description": "Get ISO 3166-1 alpha-3 country code for geographic coordinates.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -25,4 +25,4 @@ # country-iso

// query a point
countryIso.get(42.50779, 1.52109);
// => 'AD'
countryIso.get(42.50779, 1.52109).then(codes => console.log(codes));
// => ['AD']
```

@@ -42,3 +42,3 @@

Searches for every country which contains the point (lat, lng).
Searches for every country which contains the point (lat, lng). **Returns a Promise**

@@ -45,0 +45,0 @@ #### lat

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