Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Converted multi language meta information CO
untriesLA
nguagesGE
nres.
npm i colage
Import the library in your code:
const colage = require('colage');
Convert country names (string) to ISO 3166-1 (array)
let iso_3166_1 = colage.co('Россия, Deutschland, 中国');
console.log(iso_3166_1); //=> [ 'RU', 'DE', 'CN' ]
Convert country ISO 3166-1 (array) to names (array)
let en_countries = colage.co([ 'RU', 'DE', 'CN' ], 'en');
console.log(en_countries); //=> [ 'Russia', 'Germany', 'China' ]
Convert language names (string) to ISO 639-1 (array)
let iso_639_1 = colage.la('русский, deutsch, 中文');
console.log(iso_639_1); //=> [ 'ru', 'de', 'zh' ]
Convert language ISO 639-1 (array) to names (array)
let en_languages = colage.la([ 'ru', 'de', 'zh' ], 'en');
console.log(en_languages); //=> [ 'Russian', 'German', 'Chinese' ]
Convert genre names (string) to codes (array)
let codes = colage.ge('комедия, musikalisch, 动作');
console.log(codes); //=> [ '8', '21', '1' ]
Convert genre codes (array) to names (array)
let en_genres = colage.ge([ '8', '21', '1' ], 'en');
console.log(en_genres); //=> [ 'comedy', 'musical', 'action' ]
npm test
FAQs
Converted multi language meta information COuntries|LAnguages|GEnres.
We found that colage 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.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.