
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
country-info-package
Advanced tools
A package for country information, including codes, names, flags, languages, and more.
country-info-package
is an npm package designed to provide detailed information about countries. It includes data such as country codes, names, flags, languages, and more, simplifying the process of accessing country-related information for developers.
To install the country-info-package
npm package, use the following command:
npm install country-info-package
import { getCountryInfo } from "country-info-package";
// Example usage
// By country code
const countryByCode = getCountryInfo("ZW");
console.log(countryByCode);
// By country title
const countryByTitle = getCountryInfo("Zimbabwe");
console.log(countryByTitle);
// By phone code
const countryByPhoneCode = getCountryInfo("+263");
console.log(countryByPhoneCode);
The getCountryInfo
function returns an object with detailed country information:
{
"title": "Zimbabwe",
"code": "ZW",
"time_zone": "UTC+2",
"currency": {
"name": "Zimbabwean Dollar",
"symbol": "$"
},
"languages": ["English", "Shona", "Sindebele"],
"ISO_codes": {
"numeric": "716",
"alpha3": "ZWE"
},
"phone_code": "+263",
"area_km2": 390757,
"flag": "🇿🇲"
}
getCountryInfo(value)
value
(string): The country code (e.g., 'ZW'),
country title (e.g., 'Zimbabwe'), or
phone code (e.g., '+263').
An object with country information, including the flag, or an object with a message if the country is not found.
country-flag-icons
: Provides country flag icons.
This package is licensed under the ISC License.
Rizwan Khan (Captain)
FAQs
A package for country information, including codes, names, flags, languages, and more.
We found that country-info-package 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.