
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
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: string
languageCode: string
term: string
value: string
Translation of a single term to a single language.
apiToken: string
projectNames: 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) => string
Map<string, Translation[]>
Groups translations by keys produced by grouper
.
translations: Translation[]
options: Object
indent: number | string
string
Formats 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 26 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.