Socket
Socket
Sign inDemoInstall

extract-country-state-city-from-zip

Package Overview
Dependencies
7
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.3

README.md

2

index.js

@@ -75,3 +75,3 @@ var fetch = require("node-fetch");

response.json().then(function(data) {
callback(null, data.results[0]);
callback(null, extractAddress(data));
});

@@ -78,0 +78,0 @@ }

{
"name": "extract-country-state-city-from-zip",
"version": "1.0.1",
"version": "1.0.3",
"description": "This package extracts country, state and city from any zip code, user need to provide zip code and google api access key",

@@ -9,2 +9,6 @@ "main": "index.js",

},
"repository": {
"type": "git",
"url": "https://github.com/dinesh-rawat/extract-country-state-city-from-zip.git"
},
"keywords": [

@@ -27,5 +31,5 @@ "google",

"dependencies": {
"extract-country-state-city-from-zip": "^1.0.0",
"extract-country-state-city-from-zip": "^1.0.1",
"node-fetch": "^2.6.0"
}
}

@@ -1,4 +0,3 @@

var x = require('extract-country-state-city-from-zip');
var x = require('./index.js');
console.log(x)
x(248001, 'AIzaSyDqZ5w4dZlSKCEnBRbMsSQH4N3P8KBHi54', (er, res) => console.info(err, res));
x(248001, 'A111SyDqZ5w4dZlSKCEnBRbMsSQH4N3P8KBHi54', (err, res) => console.info(err, res));
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc