{"id":17353235,"url":"https://github.com/zacanger/shrink-string","last_synced_at":"2025-04-14T20:31:09.793Z","repository":{"id":57359001,"uuid":"161861708","full_name":"zacanger/shrink-string","owner":"zacanger","description":"Tiny string compression module for Node.","archived":false,"fork":false,"pushed_at":"2024-06-16T16:26:05.000Z","size":917,"stargazers_count":9,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T01:35:58.454Z","etag":null,"topics":["compress","compression","shrink","string"],"latest_commit_sha":null,"homepage":"http://npm.im/shrink-string","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/zacanger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":".github/SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-15T02:24:25.000Z","updated_at":"2025-02-10T18:15:59.000Z","dependencies_parsed_at":"2024-06-18T21:12:01.402Z","dependency_job_id":"94378ec0-7e3d-441a-b66f-9b35b830a823","html_url":"https://github.com/zacanger/shrink-string","commit_stats":{"total_commits":73,"total_committers":3,"mean_commits":"24.333333333333332","dds":0.0821917808219178,"last_synced_commit":"b699e24d0f75208959323edcdc87334c422bce9f"},"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacanger%2Fshrink-string","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacanger%2Fshrink-string/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacanger%2Fshrink-string/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zacanger%2Fshrink-string/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zacanger","download_url":"https://codeload.github.com/zacanger/shrink-string/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248955476,"owners_count":21189120,"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":["compress","compression","shrink","string"],"created_at":"2024-10-15T17:16:03.762Z","updated_at":"2025-04-14T20:31:09.391Z","avatar_url":"https://github.com/zacanger.png","language":"JavaScript","funding_links":["https://ko-fi.com/zacanger"],"categories":[],"sub_categories":[],"readme":"# shrink-string\n\nTiny string compression module for Node.\n\n[Donate](https://ko-fi.com/zacanger)\n\n--------\n\n## Installation\n\n`npm i shrink-string`\n\n## Usage\n\n```javascript\nconst { compress, decompress } = require('shrink-string')\n\n// `compress` takes a unicode string and returns a base64 string\n// `decompress` takes that base64 string and returns the original unicode string\n\nconst thing = async (s = '') =\u003e {\n  const shrunk = await compress(s)\n  const expanded = await decompress(shrunk)\n  assert(s === expanded)\n}\n```\n\nThanks to [MrlolDev](https://github.com/MrlolDev) for adding TypeScript support.\n\n[LICENSE](./LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzacanger%2Fshrink-string","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzacanger%2Fshrink-string","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzacanger%2Fshrink-string/lists"}