{"id":41196905,"url":"https://github.com/smartsupp/node-poeditor-utils","last_synced_at":"2026-01-22T20:37:34.258Z","repository":{"id":57326606,"uuid":"48103186","full_name":"smartsupp/node-poeditor-utils","owner":"smartsupp","description":"higher-level POEditor utilities for Node.js","archived":false,"fork":false,"pushed_at":"2019-06-05T15:21:26.000Z","size":79,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-09-18T18:46:21.626Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smartsupp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-16T10:18:24.000Z","updated_at":"2019-06-05T15:08:44.000Z","dependencies_parsed_at":"2022-09-21T02:01:24.101Z","dependency_job_id":null,"html_url":"https://github.com/smartsupp/node-poeditor-utils","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/smartsupp/node-poeditor-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartsupp%2Fnode-poeditor-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartsupp%2Fnode-poeditor-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartsupp%2Fnode-poeditor-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartsupp%2Fnode-poeditor-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smartsupp","download_url":"https://codeload.github.com/smartsupp/node-poeditor-utils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smartsupp%2Fnode-poeditor-utils/sbom","scorecard":{"id":832959,"data":{"date":"2025-08-18","repo":{"name":"github.com/smartsupp/node-poeditor-utils","commit":"cc7fe7cd7f55406eaf1680d8322f245a7b79f4c6"},"scorecard":{"version":"v5.2.1-41-g40576783","commit":"40576783fda6698350fcbbeaea760ff827433034"},"score":3.5,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/13 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#dangerous-workflow"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#pinned-dependencies"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 20 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/40576783fda6698350fcbbeaea760ff827433034/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T18:13:12.606Z","repository_id":57326606,"created_at":"2025-08-23T18:13:12.606Z","updated_at":"2025-08-23T18:13:12.606Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28670415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T19:36:09.361Z","status":"ssl_error","status_checked_at":"2026-01-22T19:36:05.567Z","response_time":144,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-22T20:37:33.658Z","updated_at":"2026-01-22T20:37:34.250Z","avatar_url":"https://github.com/smartsupp.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# poeditor-utils\n\nhigher-level POEditor utilities for Node.js\n\n* uses [POEditor API v1][1] via [poeditor-client][2]\n* API is still a subject to change\n\n[1]: https://poeditor.com/api_reference/\n[2]: https://github.com/janjakubnanista/poeditor-client\n\n## Usage\n\n```js\nimport * as utils from 'poeditor-utils'\nimport * as fs from 'fs'\n\nconst languageCodeOverrides = {\n\t'pt-br': 'pt',\n}\nconst translations = await utils.getTranslations('API token', [\n\t'project A',\n\t'project B',\n])\nconst translationsByLanguage = utils.groupTranslations(translations, (translation) =\u003e translation.languageCode)\ntranslationsByLanguage.forEach((translations, languageCode) =\u003e {\n\tconst language = languageCodeOverrides[languageCode] || languageCode\n\tconst data = utils.formatTranslationsAsJson(translations, {\n\t\tindent: 2,\n\t})\n\tfs.writeFileSync(`./translations/${language}.json`, data)\n})\n```\n\n## utils.Translation\n\n* `projectName: string`\n* `languageCode: string`\n* `term: string`\n* `value: string`\n\nTranslation of a single term to a single language.\n\n## utils.getTranslations(apiToken, projectNames[, options])\n\n* `apiToken: string`\n* `projectNames: string[]`\n* `options: Object`\n  * `languageCodes: string[]`\n* returns `Promise\u003cTranslation[]\u003e`\n\nGets translations for multiple projects. Gets translations for all the project languages or only languages specified with `options.languageCodes`.\n\n## utils.groupTranslations(translations, grouper)\n\n* `translations: Translation[]`\n* `grouper: (translation: Translation) =\u003e string`\n* returns `Map\u003cstring, Translation[]\u003e`\n\nGroups translations by keys produced by `grouper`.\n\n## utils.formatTranslationsAsJson(translations[, options])\n\n* `translations: Translation[]`\n* `options: Object`\n  * `indent: number | string`\n* returns `string`\n\nFormats translations to string as stable sorted JSON.\n\n## Obsolete API\n\n### ~~utils.Client(apiToken)~~ [DEPRECATED]\n\n* `apiToken: string` - POEditor API token\n\nExposes the [poeditor-client][2] `Client`. See their docs for more.\n\n### ~~utils.getProject(apiToken, projectName)~~ [DEPRECATED]\n\n* `apiToken: string` - POEditor API token\n* `projectName: string` - POEditor project name\n\nReturns a promise which resolves with a [poeditor-client][2] `Project` representation of the project. See their docs for more.\n\n### ~~utils.pullTranslations(apiToken, projectName, getPathCallback)~~ [DEPRECATED]\n\n* `apiToken: string` - POEditor API token\n* `projectName: string` - POEditor project name\n* `getPathCallback: (translation: Translation) =\u003e string` - produces destination file path for given translation\n\nGets 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.\n\n```js\nutils.pullTranslations('API token', 'project name', (translation) =\u003e {\n\treturn 'translations/' + translation.languageCode + '.json'\n})\n.then((paths) =\u003e {\n\tconsole.log(paths) // ['translations/en.json', ...]\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartsupp%2Fnode-poeditor-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmartsupp%2Fnode-poeditor-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmartsupp%2Fnode-poeditor-utils/lists"}