Socket
Socket
Sign inDemoInstall

thezipcodes

Package Overview
Dependencies
47
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.0.4

5

examples/index.js
const theZipCodes = require("thezipcodes");
theZipCodesApi = new theZipCodes("1c1442cb2ac7fdddfca504d5345e9231");
theZipCodesApi = new theZipCodes("apiKey");
// Get Zip code to Location

@@ -32,3 +32,4 @@ theZipCodesApi

"13041", // toZipCode
"US" // countryCode
"US", // countryCode,
"KM" // unit
)

@@ -35,0 +36,0 @@ .then((data) => {

3

index.js

@@ -44,3 +44,3 @@ const request = require("request");

}
getDistance(fromZipCode, toZipCode, countryCode) {
getDistance(fromZipCode, toZipCode, countryCode, unit) {
const params = {

@@ -50,2 +50,3 @@ fromZipCode: fromZipCode,

countryCode: countryCode,
unit: unit
};

@@ -52,0 +53,0 @@ const url = distanceUrl;

{
"name": "thezipcodes",
"version": "1.0.3",
"version": "1.0.4",
"description": "",

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

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