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

country-state-picker

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

country-state-picker - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

data/countries.json

7

index.js
exports.getCountries = function () {
let countries = require('./countries.json');
console.log(countries);
let countries = require('./data/countries.json');
return countries;

@@ -8,10 +7,8 @@ }

exports.getStates = function (countryCode) {
let states = require('./states.json');
let states = require('./data/states.json');
try {
console.log(states[countryCode]);
return states[countryCode];
} catch (error) {
console.log('Invalid country code');
return 'Invalid country code';
}
}
{
"name": "country-state-picker",
"version": "1.0.0",
"version": "1.0.1",
"description": "NPM package to get the list of countries and their states.",

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

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