{"id":15286990,"url":"https://github.com/nurliman/base85","last_synced_at":"2025-04-13T03:57:37.356Z","repository":{"id":214461797,"uuid":"736575738","full_name":"nurliman/base85","owner":"nurliman","description":"Browser and Node.js-compatible Base85 encoder/decoder.","archived":false,"fork":false,"pushed_at":"2024-12-16T06:31:57.000Z","size":421,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-01T12:53:32.375Z","etag":null,"topics":["ascii85","base85","deno","jsr","node"],"latest_commit_sha":null,"homepage":"https://github.com/nurliman/base85","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/nurliman.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":"2023-12-28T09:24:42.000Z","updated_at":"2024-12-16T06:31:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"bbd3d1ef-810c-4f83-aa8f-e74c484ecfe4","html_url":"https://github.com/nurliman/base85","commit_stats":{"total_commits":84,"total_committers":3,"mean_commits":28.0,"dds":0.3214285714285714,"last_synced_commit":"3a3a203aea5556b1a1d54611afe4da2065def66a"},"previous_names":["nurliman/base85"],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nurliman%2Fbase85","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nurliman%2Fbase85/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nurliman%2Fbase85/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nurliman%2Fbase85/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nurliman","download_url":"https://codeload.github.com/nurliman/base85/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248537136,"owners_count":21120709,"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","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":["ascii85","base85","deno","jsr","node"],"created_at":"2024-09-30T15:20:12.594Z","updated_at":"2025-04-13T03:57:37.312Z","avatar_url":"https://github.com/nurliman.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @nurliman/base85\n\n[![jsr.io/@nurliman/base85](https://jsr.io/badges/@nurliman/base85)](https://jsr.io/@nurliman/base85)\n[![jsr.io/@nurliman/base85 score](https://jsr.io/badges/@nurliman/base85/score)](https://jsr.io/@nurliman/base85)\n[![npm Version](https://img.shields.io/npm/v/%40nurliman%2Fbase85)](https://www.npmjs.com/package/@nurliman/base85)\n\n## Description\n\n`@nurliman/base85` is a Base85 encoder and decoder that compatible for Node.js and browser.\n\n## Installation\n\nTo install the package, run the following command:\n\n```bash\nnpm install @nurliman/base85\n```\n\n## Usage\n\nImport the package into your project:\n\n```js\nimport { encodeBase85, decodeBase85 } from \"@nurliman/base85\";\n\nconst encoded = encodeBase85(\"your string\");\nconst decoded = decodeBase85(encoded);\n```\n\nusing default import:\n\n```js\nimport base85 from \"@nurliman/base85\";\n\nconst encoded = base85.encode(\"your string\");\nconst decoded = base85.decode(encoded);\n```\n\nusing require:\n\n```js\nconst { encodeBase85, decodeBase85 } = require(\"@nurliman/base85\");\n\nconst encoded = encodeBase85(\"your string\");\nconst decoded = decodeBase85(encoded);\n```\n\nPlease replace `'your string'` with the string you want to encode and decode.\n\n### EncodeOptions\n\n`EncodeOptions` is an object that can be passed to the encode function to customize its behavior. It has the following properties:\n\n- `wrap`: If true, the encoded string will be wrapped in `\u003c~` and `~\u003e`. Defaults to `true`.\n\nHere's an example of how to use it:\n\n```js\nimport base85 from \"@nurliman/base85\";\n\nconst result = base85.encode(\"Hello World!\");\nconsole.log(result);\n// \u003c~87cURD]i,\"Ebo80~\u003e\n\nconst result = base85.encode(\"Hello World!\", {\n  wrap: false, // Set this to false if you don't want the output to be wrapped\n});\nconsole.log(result);\n// 87cURD]i,\"Ebo80\n```\n\n### Decode\n\n```js\nimport base85 from \"@nurliman/base85\";\n\nconst result = base85.decode('\u003c~87cURD]i,\"Ebo80~\u003e');\nconsole.log(result);\n// Hello World!\n\n// it also works without the wrapping characters\nconst result = base85.decode('87cURD]i,\"Ebo80');\nconsole.log(result);\n// Hello World!\n```\n\n## Author\n\n[Nurliman Diara](https://nurliman.dev)\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnurliman%2Fbase85","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnurliman%2Fbase85","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnurliman%2Fbase85/lists"}