
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
world-countries-capitals
Advanced tools
A simple NPM package to get capitals, currency, native language etc. of all the countries in the world
This is a Node.js module available through the npm registry.
Before using, download and install Node.js.
Installation is done using the
npm install
command:
$ npm i world-countries-capitals --save
[
{
"country": "Afghanistan",
"capital": "Kabul",
"currency": "Afghani",
"native_language": "Dari Persian, Pashto"
},
{
"country": "Albania",
"capital": "Tirane",
"currency": "Lek",
"native_language": "Albanian"
},
...
]
[
'Afghanistan',
'Albania',
'Algeria',
'Andorra',
'Angola',
'Antigua & Barbuda',
'Argentina',
'Armenia',
'Australia',
'Austria',
'Azerbaijan',
...
]
Response for languageSpoken = 'Hindi'
[
{
country: 'Fiji',
capital: 'Suva',
currency: 'Fijian Dollar',
native_language: 'english, bau fijian, hindi',
},
{
country: 'India',
capital: 'New Delhi',
currency: 'Indian Rupee',
native_language: 'hindi, english',
},
];
Response for countryName = 'india'
[
{
country: 'india',
capital: 'New Delhi',
currency: 'Indian Rupee',
native_language: 'Hindi, English',
},
];
Response for capital = 'delhi'
[
{
country: 'India',
capital: 'new delhi',
currency: 'Indian Rupee',
native_language: 'Hindi, English',
},
];
» node app.js
Tuvalu
» node app.js
Bhutan
» node app.js
Saudi Arabia
Response for n = 3
[
{
country: 'Burundi',
capital: 'Bujumbura',
currency: 'Burundi Franc',
native_language: 'Kirundi, French',
},
{
country: 'Palau',
capital: 'Melekeok',
currency: 'United States Dollar',
native_language: 'English, Palauan',
},
{
country: 'Dominican Republic',
capital: 'Santo Domingo',
currency: 'Dominican Peso',
native_language: 'Spanish',
},
];
Please check issues here!
FAQs
A simple NPM package to get capitals, currency, native language, famous_for etc. of all the countries in the world
The npm package world-countries-capitals receives a total of 408 weekly downloads. As such, world-countries-capitals popularity was classified as not popular.
We found that world-countries-capitals demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.