
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.
poeditor-utils
Advanced tools
higher-level POEditor utilities for Node.js
import * as utils from 'poeditor-utils'
import * as fs from 'fs'
const languageCodeOverrides = {
'pt-br': 'pt',
}
const translations = await utils.getTranslations('API token', [
'project A',
'project B',
])
const translationsByLanguage = utils.groupTranslations(translations, (translation) => translation.languageCode)
translationsByLanguage.forEach((translations, languageCode) => {
const language = languageCodeOverrides[languageCode] || languageCode
const data = utils.formatTranslationsAsJson(translations, {
indent: 2,
})
fs.writeFileSync(`./translations/${language}.json`, data)
})
projectName: stringlanguageCode: stringterm: stringvalue: stringTranslation of a single term to a single language.
apiToken: stringprojectNames: string[]options: Object
languageCodes: string[]Promise<Translation[]>Gets translations for multiple projects. Gets translations for all the project languages or only languages specified with options.languageCodes.
translations: Translation[]grouper: (translation: Translation) => stringMap<string, Translation[]>Groups translations by keys produced by grouper.
translations: Translation[]options: Object
indent: number | stringstringFormats translations to string as stable sorted JSON.
apiToken: string - POEditor API tokenExposes the poeditor-client Client. See their docs for more.
apiToken: string - POEditor API tokenprojectName: string - POEditor project nameReturns a promise which resolves with a poeditor-client Project representation of the project. See their docs for more.
apiToken: string - POEditor API tokenprojectName: string - POEditor project namegetPathCallback: (translation: Translation) => string - produces destination file path for given translationGets translations for all the project languages and writes them to files by getPathCallback as a stable sorted JSON. Returns a promise which resolves with an array of file paths written.
utils.pullTranslations('API token', 'project name', (translation) => {
return 'translations/' + translation.languageCode + '.json'
})
.then((paths) => {
console.log(paths) // ['translations/en.json', ...]
})
FAQs
higher-level POEditor utilities for Node.js
The npm package poeditor-utils receives a total of 5 weekly downloads. As such, poeditor-utils popularity was classified as not popular.
We found that poeditor-utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers 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.