Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Lookup information with ISO 3166-1 alpha-2, ISO 3166-1 alpha-3 and ISO 3166-1 numeric
Lookup information with ISO 3166-1 alpha-2, ISO 3166-1 alpha-3 and ISO 3166-1 numeric
npm install iso-3166-1 --save
Get country by ISO 3166-1 Alpha-2
const iso = require('iso-3166-1');
console.log(iso.whereAlpha2('no'));
/** Returns:
{
country: 'Norway',
alpha2: 'NO',
alpha3: 'NOR',
numeric: '578'
}
*/
Get country by ISO 3166-1 Alpha-3
const iso = require('iso-3166-1');
console.log(iso.whereAlpha3('nor'));
/** Returns:
{
country: 'Norway',
alpha2: 'NO',
alpha3: 'NOR',
numeric: '578'
}
*/
Get country by ISO 3166-1 Numeric
const iso = require('iso-3166-1');
console.log(iso.whereNumeric(578));
/** Returns:
{
country: 'Norway',
alpha2: 'NO',
alpha3: 'NOR',
numeric: '578'
}
*/
Get country by country name
const iso = require('iso-3166-1');
console.log(iso.whereCountry('NORWAY'));
/** Returns:
{
country: 'Norway',
alpha2: 'NO',
alpha3: 'NOR',
numeric: '578'
}
*/
Get all countries
const iso = require('iso-3166-1');
console.log(iso.all());
/** Returns:
[
{
country: 'Norway',
alpha2: 'NO',
alpha3: 'NOR',
numeric: '578'
}
]
*/
MIT © Daniel Eckermann
FAQs
Lookup information with ISO 3166-1 alpha-2, ISO 3166-1 alpha-3 and ISO 3166-1 numeric
The npm package iso-3166-1 receives a total of 80,705 weekly downloads. As such, iso-3166-1 popularity was classified as popular.
We found that iso-3166-1 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.