
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
countries-list-json
Advanced tools
A comprehensive list of countries and their details in JSON format. Useful for applications that need country data for various purposes such as dropdowns, validations, etc.
To install this package, run:
npm install countries-list-json
Here is a basic example of how to use this package:
const countries = require('countries-list-json');
// Example usage
console.log(countries); // Prints the entire list of countries
// Accessing specific country details
const zambia = countries.find(country => country.code === 'ZM');
console.log(zambia); // { name: 'Zambia', code: 'ZM', dial_code: '+260', flag: '🇿🇲' }
The package exports a JSON array of country objects. Each country object contains the following properties:
name (String): The name of the country.code (String): The ISO 3166-1 alpha-2 code of the country.dial_code (String): The international dialing code of the country.flag (String): The flag emoji of the country.{
"name": "Zambia",
"code": "ZM",
"dial_code": "+260",
"flag": "🇿🇲"
}
Contributions are welcome! Please open an issue or submit a pull request for any bugs or features.
git checkout -b feature-branch)git commit -am 'Add some feature')git push origin feature-branch)This project is licensed under the MIT License - see the LICENSE file for details.
FAQs
A simple npm package for a list of countries in JSON format
The npm package countries-list-json receives a total of 13 weekly downloads. As such, countries-list-json popularity was classified as not popular.
We found that countries-list-json demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.