
Research
Namastex.ai npm Packages Hit with TeamPCP-Style CanisterWorm Malware
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.
Simple interface for ISO-639-1 language codes
npm install iso-639-1
const ISO6391 = require('iso-639-1');
console.log(ISO6391.getName('en')); // 'English'
import ISO6391 from 'iso-639-1';
console.log(ISO6391.getName('en')); // 'English'
HTML
<script type="text/javascript" src="./node_modules/iso-639-1/build/index.js"></script>
Visit global variable ISO6391 in js
console.log(ISO6391.getName('en')); // 'English'
Lookup language english name by code
Get array of all language english names
Lookup language native name by code
Get array of all language native names
Lookup code by english name or native name
Get array of all codes
Check whether the given code is in the list of ISO-639-1
Get the array of the language objects by the given codes
const ISO6391 = require('iso-639-1')
console.log(ISO6391.getName('zh')) // 'Chinese'
console.log(ISO6391.getNativeName('zh')) // '中文'
console.log(ISO6391.getAllNames()) // ['Afar','Abkhaz', ... ,'Zulu']
console.log(ISO6391.getAllNativeNames()) //['Afaraf','аҧсуа бызшәа', ... ,'isiZulu' ]
console.log(ISO6391.getCode('Chinese')) // 'zh'
console.log(ISO6391.getCode('中文')) // 'zh'
console.log(ISO6391.getAllCodes()) //['aa','ab',...,'zu']
console.log(ISO6391.validate('en')) // true
console.log(ISO6391.validate('xx')) // false
console.log(ISO6391.getLanguages(['en', 'zh']))
// [{code:'en',name:'English',nativeName:'English'},{code:'zh',name:'Chinese',nativeName:'中文'}]
The iso-639 package provides similar functionality for working with ISO 639 language codes, including both ISO 639-1 and ISO 639-2. It offers methods to get language names, codes, and validate codes. Compared to iso-639-1, it supports a broader range of language codes.
The language-codes package provides a comprehensive list of language codes and their corresponding names, including ISO 639-1, ISO 639-2, and ISO 639-3. It offers more extensive data and supports multiple standards, making it more versatile than iso-639-1.
The langs package provides utilities for working with language codes, including ISO 639-1, ISO 639-2, and ISO 639-3. It offers methods to get language names, codes, and validate codes. It is more comprehensive than iso-639-1, supporting multiple ISO standards.
FAQs
ISO-639-1 codes
The npm package iso-639-1 receives a total of 0 weekly downloads. As such, iso-639-1 popularity was classified as not popular.
We found that iso-639-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
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.