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.
iso-language-codes
Advanced tools
Test coverage | Thanks | |||
---|---|---|---|---|
Based on https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes
npm i iso-language-codes
import codes, {by639_1, by639_2T, by639_2B} from 'iso-language-codes'
var code
code = codes[0]
//code is
{
name: 'Serbian',
nativeName: 'српски језик',
iso639_1: 'sr',
iso639_2T: 'srp',
iso639_2B: 'srp'
}
code = by639_1['en']
//code is
{
name: 'English',
nativeName: 'English',
iso639_1: 'en',
iso639_2T: 'eng',
iso639_2B: 'eng'
}
code = iso639_2T['fra']
//code is
{
name: 'French',
nativeName: 'français, langue française',
iso639_1: 'fr',
iso639_2T: 'fra',
iso639_2B: 'fre'
}
//get an array of all iso639_2B codes:
var code2BList = Object.keys(iso639_2B)
const codes = require('iso-language-codes');
const {by639_1, by639_2T, by639_2B} = codes;
//see first example above for usage ...
2.0.0 2023-09-27
FAQs
ISO 639-1, -2/T and -2/B codes with names
The npm package iso-language-codes receives a total of 3,952 weekly downloads. As such, iso-language-codes popularity was classified as popular.
We found that iso-language-codes 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.