{"id":17309537,"url":"https://github.com/jcubic/lzjb-pack","last_synced_at":"2025-08-19T02:36:41.994Z","repository":{"id":139308671,"uuid":"421462870","full_name":"jcubic/lzjb-pack","owner":"jcubic","description":"No Dependency fast and small LZJB Compression for Node and browser","archived":false,"fork":false,"pushed_at":"2021-10-27T10:46:12.000Z","size":27,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-12T18:43:04.858Z","etag":null,"topics":["compression","compression-implementations","javascript","javascript-library"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jcubic.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-26T14:40:01.000Z","updated_at":"2024-12-01T12:17:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"ed861694-b439-4c5b-af56-251bba2acb13","html_url":"https://github.com/jcubic/lzjb-pack","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"70bd66c0fd3254ce5b60277d75148ff22c1dc108"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcubic%2Flzjb-pack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcubic%2Flzjb-pack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcubic%2Flzjb-pack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcubic%2Flzjb-pack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jcubic","download_url":"https://codeload.github.com/jcubic/lzjb-pack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245097834,"owners_count":20560319,"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":["compression","compression-implementations","javascript","javascript-library"],"created_at":"2024-10-15T12:29:37.674Z","updated_at":"2025-03-27T00:23:21.407Z","avatar_url":"https://github.com/jcubic.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# lzjb-pack\n\n[No Dependency fast and small LZJB Compression for Node and browser](https://github.com/jcubic/lzjb-pack)\n\n## Installation\n\n```bash\nnpm install lzjb-pack\n```\n\n## Usage\n\nPacking:\n\n```javascript\nimport { pack } from 'lzjb-pack';\nimport * as fs from 'fs';\nimport { readFile, writeFile } from 'fs/promises';\n\nreadFile('package.json').then(buffer =\u003e {\n  writeFile('package.json.lzjb', pack(buffer));\n});\n\n```\n\nUnpacking:\n\n```javascript\nimport { unpack } from 'lzjb-pack';\n\nimport { readFile, writeFile } from 'fs/promises';\n\nreadFile('package.json.lzjb').then(buffer =\u003e {\n  writeFile('package-unpack.json', unpack(buffer));\n});\n```\n\n## API\n\n* `pack(Uint8Array | Buffer, { magic: boolean }): Uint8Array`\n* `unpack(Uint8Array | Buffer, { magic: boolean }): Uint8Array`\n\nif magic option is set to false magic string is not added to the output byte array.\n\n## License\n\nCopyright (c) 2021 [Jakub Jankiewicz](https://jcubic.pl/me)\u003cbr/\u003e\nReleased under BSD-3-Clause License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcubic%2Flzjb-pack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcubic%2Flzjb-pack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcubic%2Flzjb-pack/lists"}