{"id":13724881,"url":"https://github.com/polygonplanet/lzbase62","last_synced_at":"2026-02-21T00:04:36.623Z","repository":{"id":21920456,"uuid":"25244691","full_name":"polygonplanet/lzbase62","owner":"polygonplanet","description":"Compress and encode strings into base62 [0-9a-zA-Z] using an original LZ-based algorithm in JavaScript.","archived":false,"fork":false,"pushed_at":"2024-09-09T13:43:58.000Z","size":917,"stargazers_count":65,"open_issues_count":1,"forks_count":9,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-24T09:44:53.158Z","etag":null,"topics":["base62","base64","compress","compression","compression-algorithm","ecmascript","javascript","lz77","lzss","string","zip"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/polygonplanet.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-10-15T07:59:23.000Z","updated_at":"2025-09-04T09:25:12.000Z","dependencies_parsed_at":"2024-04-04T15:28:59.425Z","dependency_job_id":"6a0dbc18-e6c1-40a1-98ab-b4e3409ce7ea","html_url":"https://github.com/polygonplanet/lzbase62","commit_stats":{"total_commits":88,"total_committers":2,"mean_commits":44.0,"dds":"0.18181818181818177","last_synced_commit":"d561ab032a6377dab089b394db4450ac91fb2fa9"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/polygonplanet/lzbase62","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polygonplanet%2Flzbase62","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polygonplanet%2Flzbase62/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polygonplanet%2Flzbase62/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polygonplanet%2Flzbase62/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/polygonplanet","download_url":"https://codeload.github.com/polygonplanet/lzbase62/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/polygonplanet%2Flzbase62/sbom","scorecard":{"id":740492,"data":{"date":"2025-08-11","repo":{"name":"github.com/polygonplanet/lzbase62","commit":"4f7ecfc2a562d1a6abe038bba1744c1ac5e61c3a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.8,"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":"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":"Token-Permissions","score":10,"reason":"GitHub workflow tokens follow principle of least privilege","details":["Info: topLevel 'contents' permission set to 'read': .github/workflows/ci.yml:4","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/21 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":"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":"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":"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":"Pinned-Dependencies","score":5,"reason":"dependency not pinned by hash detected -- score normalized to 5","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/polygonplanet/lzbase62/ci.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/polygonplanet/lzbase62/ci.yml/master?enable=pin","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   2 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":"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":"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":"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"}},{"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 9 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"24 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-qwcr-r2fm-qrc7","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-pxg6-pf52-xh8x","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm","Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T17:17:10.189Z","repository_id":21920456,"created_at":"2025-08-22T17:17:10.189Z","updated_at":"2025-08-22T17:17:10.189Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29668646,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T23:24:07.480Z","status":"ssl_error","status_checked_at":"2026-02-20T23:24:06.202Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["base62","base64","compress","compression","compression-algorithm","ecmascript","javascript","lz77","lzss","string","zip"],"created_at":"2024-08-03T01:02:05.551Z","updated_at":"2026-02-21T00:04:36.604Z","avatar_url":"https://github.com/polygonplanet.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"lzbase62\n========\n\n[![NPM Version](https://img.shields.io/npm/v/lzbase62.svg)](https://www.npmjs.com/package/lzbase62)\n[![GitHub Actions Build Status](https://github.com/polygonplanet/lzbase62/actions/workflows/ci.yml/badge.svg)](https://github.com/polygonplanet/lzbase62/actions)\n[![Bundle Size (minified)](https://img.shields.io/github/size/polygonplanet/lzbase62/dist/lzbase62.min.js.svg)](https://github.com/polygonplanet/lzbase62/blob/master/dist/lzbase62.min.js)\n[![GitHub License](https://img.shields.io/github/license/polygonplanet/lzbase62.svg)](https://github.com/polygonplanet/lzbase62/blob/master/LICENSE)\n\nlzbase62 is a JavaScript library that compresses strings into ASCII strings composed solely of base62 (`0-9, a-z, A-Z`) characters, using the LZ77 based original algorithm.\n\nIt can compress and decompress any Unicode string that JavaScript can handle.\n\nThis can be particularly useful when storing large amounts of data in storage with size limitations, such as localStorage or cookies.\nAnd, since the compressed strings are composed solely of base62 characters, they can be used as string parameters, like GET parameters, without the risk of control characters or symbols.\n\n## Installation\n\n### npm\n\n```bash\nnpm install --save lzbase62\n```\n\n#### Using ES6 `import`\n\n```javascript\nimport lzbase62 from 'lzbase62';\n```\n\n#### Using CommonJS `require`\n\n```javascript\nconst lzbase62 = require('lzbase62');\n```\n\n### Browser (standalone)\n\nYou can install the library via npm or download it from the [release list](https://github.com/polygonplanet/lzbase62/tags). Use the `lzbase62.js` or `lzbase62.min.js` files included in the package.  \n\\*Please note that if you use `git clone`, even the *master* branch may be under development.\n\n```html\n\u003cscript src=\"lzbase62.js\"\u003e\u003c/script\u003e\n```\nor the minified `lzbase62.min.js`:\n\n```html\n\u003cscript src=\"lzbase62.min.js\"\u003e\u003c/script\u003e\n```\n\nWhen the script is loaded, the `lzbase62` object is defined in the global scope (i.e., `window.lzbase62`).\n\n## Usage\n\nExample of compressing and decompressing a string:\n\n```javascript\nconst data = 'hello hello hello';\nconsole.log(data.length); // 17\n\nconst compressed = lzbase62.compress(data);\nconsole.log(compressed); // 'tYVccfxGM'\nconsole.log(compressed.length); // 9\n\nconst decompressed = lzbase62.decompress(compressed);\nconsole.log(decompressed); // 'hello hello hello'\nconsole.log(decompressed === data); // true\n```\n\n## Demo\n\n* [lzbase62 compression demo](https://polygonplanet.github.io/lzbase62/demo/)\n\n## API\n\n* [compress](#lzbase62compressdata-options)\n* [decompress](#lzbase62decompressdata-options)\n\n----\n\n### lzbase62.compress(data, [options])\n\nCompresses data into a base62 `[0-9a-zA-Z]` encoded string.\n\n#### Parameters\n\n* **data** *(string)* : Input data\n* **[options]** *(object)* : Compression options\n  * **onData** *(function (chunk: string) {})* : Called when a data is chunked\n  * **onEnd** *(function () {})* : Called when process ends\n\n#### Return value\n\n*(string)* : Compressed data\n\n#### Examples\n\nExample of compressing a string:\n\n```javascript\nconst compressed = lzbase62.compress('abcabcabcabcabc');\nconsole.log(compressed); // 'tRSTxDM'\n```\n\nCompresses data using `onData` and `onEnd` events:\n\n```javascript\nconst string = 'hello hello hello';\nconst compressedChunks = [];\n\nlzbase62.compress(string, {\n  onData: (chunk) =\u003e {\n    compressedChunks.push(chunk);\n  },\n  onEnd: () =\u003e {\n    console.log(compressedChunks.join('')); // 'tYVccfxGM'\n  }\n});\n```\n\n----\n\n### lzbase62.decompress(data, [options])\n\nDecompresses a string that has been compressed with [`lzbase62.compress()`](#lzbase62compressdata-options).\n\n#### Parameters\n\n* **data** *(string)* : Input data\n* **[options]** *(object)* : Decompression options\n  * **onData** *(function (chunk: string) {})* : Called when a data is chunked\n  * **onEnd** *(function () {})* : Called when process ends\n\n#### Return value\n\n*(string)* : Decompressed data\n\n#### Examples\n\nExample of decompressing a string that has been compressed with [`lzbase62.compress()`](#lzbase62compressdata-options):\n\n```javascript\nconst decompressed = lzbase62.decompress('tRSTxDM');\nconsole.log(decompressed); // 'abcabcabcabcabc'\n```\n\nDecompress data using `onData` and `onEnd` events:\n\n```javascript\nconst compressed = 'tYVccfxGM';\nconst decompressedChunks = [];\n\nlzbase62.decompress(compressed, {\n  onData: (chunk) =\u003e {\n    decompressedChunks.push(chunk);\n  },\n  onEnd: () =\u003e {\n    console.log(decompressedChunks.join('')); // 'hello hello hello'\n  }\n});\n```\n\n## Contributing\n\nWe welcome contributions from everyone.\nFor bug reports and feature requests, please [create an issue on GitHub](https://github.com/polygonplanet/lzbase62/issues).\n\n### Pull Requests\n\nBefore submitting a pull request, please run `$ npm run test` to ensure there are no errors.\nWe only accept pull requests that pass all tests.\n\n## License\n\nThis project is licensed under the terms of the MIT license.\nSee the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolygonplanet%2Flzbase62","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpolygonplanet%2Flzbase62","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpolygonplanet%2Flzbase62/lists"}