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

is-currency-code

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-currency-code - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

2

index.js

@@ -5,5 +5,5 @@ const currencyCodes = require('./currency-codes');

if (typeof code === 'string') {
return currencyCodes.includes(code.toLowerCase());
return currencyCodes.indexOf(code.toLowerCase()) >= 0;
}
return false;
};
{
"name": "is-currency-code",
"version": "1.1.0",
"version": "1.2.0",
"description": "Validates whether a given input is a valid ISO 4217 currency code",

@@ -5,0 +5,0 @@ "scripts": {

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