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

us-state-codes

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

us-state-codes - npm Package Compare versions

Comparing version 1.0.2 to 1.1.0

CHANGELOG.md

6

index.js

@@ -15,3 +15,3 @@ var _ = require('lodash');

var getStateNameByStateCode = function(code) {
return stateNamesByCode[sanitizeStateCode(code)];
return stateNamesByCode[sanitizeStateCode(code)] || null;
};

@@ -45,3 +45,3 @@

var getStateCodeByStateName = function(name) {
return stateCodesByName[sanitizeStateName(name)];
return stateCodesByName[sanitizeStateName(name)] || null;
};

@@ -55,2 +55,2 @@

getStateCodeByStateName: getStateCodeByStateName
};
};
{
"name": "us-state-codes",
"version": "1.0.2",
"version": "1.1.0",
"description": "US state names and postal codes",

@@ -33,2 +33,2 @@ "main": "index.js",

}
}
}
# us-state-codes
[![Circle CI](https://circleci.com/gh/mdzhang/us-state-codes.svg?style=svg)](https://circleci.com/gh/mdzhang/us-state-codes)
A library to help you search, validate, and convert between US state names and state codes.

@@ -4,0 +6,0 @@

@@ -41,2 +41,3 @@ {

"PA": "Pennsylvania",
"PR": "Puerto Rico",
"RI": "Rhode Island",

@@ -54,2 +55,2 @@ "SC": "South Carolina",

"WY": "Wyoming"
}
}
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