{"id":32117643,"url":"https://github.com/atomicpages/pseudo-localizer","last_synced_at":"2025-10-20T16:55:12.445Z","repository":{"id":44913370,"uuid":"309532476","full_name":"atomicpages/pseudo-localizer","owner":"atomicpages","description":"A tiny pseudo localization utility that doesn't mangle strings","archived":false,"fork":false,"pushed_at":"2022-01-19T16:22:53.000Z","size":443,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-20T16:55:11.736Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/atomicpages.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":"2020-11-03T00:48:00.000Z","updated_at":"2020-11-15T06:25:04.000Z","dependencies_parsed_at":"2022-08-28T05:02:50.996Z","dependency_job_id":null,"html_url":"https://github.com/atomicpages/pseudo-localizer","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":"atomicpages/ts-starter","purl":"pkg:github/atomicpages/pseudo-localizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomicpages%2Fpseudo-localizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomicpages%2Fpseudo-localizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomicpages%2Fpseudo-localizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomicpages%2Fpseudo-localizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atomicpages","download_url":"https://codeload.github.com/atomicpages/pseudo-localizer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atomicpages%2Fpseudo-localizer/sbom","scorecard":{"id":215250,"data":{"date":"2025-08-11","repo":{"name":"github.com/atomicpages/pseudo-localizer","commit":"8cda1d809277d06d0687a2306dfc3e071c9e202f"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/on_push.yml:1","Warn: no topLevel permission defined: .github/workflows/on_release.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Code-Review","score":0,"reason":"Found 0/6 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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/on_push.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/atomicpages/pseudo-localizer/on_push.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/on_push.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/atomicpages/pseudo-localizer/on_push.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/on_release.yml:9: update your workflow using https://app.stepsecurity.io/secureworkflow/atomicpages/pseudo-localizer/on_release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/on_release.yml:10: update your workflow using https://app.stepsecurity.io/secureworkflow/atomicpages/pseudo-localizer/on_release.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/on_push.yml:17","Warn: npmCommand not pinned by hash: .github/workflows/on_release.yml:16","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"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/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}}]},"last_synced_at":"2025-08-17T01:32:37.914Z","repository_id":44913370,"created_at":"2025-08-17T01:32:37.914Z","updated_at":"2025-08-17T01:32:37.914Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280127560,"owners_count":26276931,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-20T02:00:06.978Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2025-10-20T16:55:09.394Z","updated_at":"2025-10-20T16:55:12.435Z","avatar_url":"https://github.com/atomicpages.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pseudo Localizer\n\nA tiny utility that brings harmony to content authors and developers.\n\n## Why?\n\nMost pseudo localization techniques mangle strings based on their ASCII values which creates two problems:\n\n1. Pseudo localization doesn't work with non-ASCII encodings\n2. Fuzzy matching doesn't work (ex: `/Hello/.test('Ḥḛḛḽḽṓṓ')` vs `/Hello/.test('_Hello--_')`)\n\n`pseudo-localizer` works by taking the current string as-is and adds padding around the strings so fuzzy matches still behave properly.\n\n## Install\n\n```sh\nnpm i pseudo-localizer\n```\n\n## Usage\n\n`pseudo-localizer` works in the browser, node, and deno. `pseudo-localizer` exports a single function that takes a string and options.\n\n```js\nimport { pseudo } from 'pseudo-localizer';\n\npseudo('Hello'); // Hello--\npseudo('Hello', { prefix: '_' }); // _Hello--\npseudo('Hello', { letterMultiplier: 2 }); // _Hello----\n```\n\n### Fixed-Length Expansion\n\nSometimes you want to expand all strings by a percentage:\n\n```js\nimport { pseudo } from 'pseudo-localizer';\n\npseudo('Ahoy, matey!', { mode: 'fixed' }); // Ahoy, matey!---\npseudo('Ahoy, matey!', { mode: 'fixed', fixedMultiplier: 0.75 }); // Ahoy, matey!---------\n```\n\n## Options\n\n| Name               | Type                      | Default Value           | Required | Description                                                                                  |\n| ------------------ | ------------------------- | ----------------------- | -------- | -------------------------------------------------------------------------------------------- |\n| `mode`             | `'fixed' \\| 'vowels'`     | `'vowels'`              | No       | Set fixed to manually specify the string length multiplier                                   |\n| `prefix`           | `string`                  |                         | No       | Set a prefix to use before the pseudo string                                                 |\n| `suffix`           | `string`                  |                         | No       | Set a suffix to use after the pseudo string                                                  |\n| `pad`              | `string`                  | `'-'`                   | No       | Set the pad character                                                                        |\n| `vowels`           | `string[] \\| Set\u003cstring\u003e` | `[a,e,i,o,u,A,E,I,O,U]` | No       | Override the vowels list for non-English locales                                             |\n| `fixedMultiplier`  | `number`                  | `0.3`                   | No       | In `fixed` mode, override the fixed multiplier as a percentage of the original string length |\n| `letterMultiplier` | `number`                  | `1`                     | No       | Specify a custom letter multiplier in vowel mode                                             |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatomicpages%2Fpseudo-localizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatomicpages%2Fpseudo-localizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatomicpages%2Fpseudo-localizer/lists"}