New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

city-grabber

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

city-grabber - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

2

package.json
{
"name": "city-grabber",
"version": "1.1.1",
"version": "1.1.2",
"description": "Grabs the nearest City from gps coordinates.",

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

@@ -7,3 +7,3 @@ # City Grabber

This API requires an API key which can get obtained [Here](https://city.rocket-solutions.co.uk/key). It will come with 10 free requests.
This API requires an API key which can get obtained [Here](https://city.rocket-solutions.co.uk/key).

@@ -21,8 +21,7 @@ ## Installation

cityGrabber.get( latitude, longitude, size, apiKey )
.then( response => console.log( response.city, response.country, response.population ))
.then( response => { const { city, country, population } = response })
.catch( e => console.log( e ))
//Async await
const response = await cityGrabber.get( latitude, longitude, size, apiKey )
console.log( response.city, response.country, response.population )
const { city, country, population } = await cityGrabber.get( latitude, longitude, size, apiKey )
```

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