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

i18n-iso-countries

Package Overview
Dependencies
Maintainers
1
Versions
111
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18n-iso-countries - npm Package Compare versions

Comparing version 3.2.2 to 3.3.0

langs/id.json

3

entry-node.js

@@ -24,2 +24,3 @@ var library = require("./index");

require("./langs/hy.json"),
require("./langs/id.json"),
require("./langs/it.json"),

@@ -49,3 +50,3 @@ require("./langs/ja.json"),

require("./langs/uz.json"),
require("./langs/zh.json"),
require("./langs/zh.json")
];

@@ -52,0 +53,0 @@

{
"name": "i18n-iso-countries",
"version": "3.2.2",
"version": "3.3.0",
"description": "i18n for ISO 3166-1 country codes",

@@ -37,2 +37,3 @@ "typings": "index.d.js",

"hy",
"id",
"it",

@@ -39,0 +40,0 @@ "ja",

@@ -65,2 +65,3 @@ [![Build Status](https://secure.travis-ci.org/michaelwittig/node-i18n-iso-countries.png)](http://travis-ci.org/michaelwittig/node-i18n-iso-countries)

* `it`: Italian
* `id`: Indonesian
* `ja`: Japanese

@@ -67,0 +68,0 @@ * `ka`: Georgian

@@ -218,2 +218,40 @@ require('core-js/modules/es7.string.pad-start');

});
describe("id", function () {
var lang = "id";
describe("get Alpha-2 code", function() {
it("nameToAlpha2 Amerika Serika => AS", function() {
assert.equal(i18niso.getAlpha2Code("Amerika Serikat", lang), "AS");
});
it("nameToAlpha2 Brasil => BR", function() {
assert.equal(i18niso.getAlpha2Code("Brasil", lang), "BR");
});
});
describe("get Alpha-3 code", function() {
it("nameToAlpha3 Amerika Serikat => ASM", function() {
assert.equal(i18niso.getAlpha3Code("Amerika Serikat", lang), "ASM");
});
it("nameToAlpha3 Brasil => BRA", function() {
assert.equal(i18niso.getAlpha3Code("Brasil", lang), "BRA");
});
});
describe("get name", function () {
it("for de", function () {
assert.equal(i18niso.getName("de", lang), "Jerman");
});
it("for cl", function () {
assert.equal(i18niso.getName("cl", lang), "Chile");
});
it("for CL", function () {
assert.equal(i18niso.getName("CL", lang), "Chile");
});
it("for cy", function () {
assert.equal(i18niso.getName("cy", lang), "Siprus");
});
it("for af", function () {
assert.equal(i18niso.getName("af", lang), "Afghanistan");
});
});
});
describe("pl", function () {

@@ -220,0 +258,0 @@ var lang = "pl";

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