{"id":26505664,"url":"https://github.com/datamart/lzw-compressor","last_synced_at":"2025-03-20T21:58:01.745Z","repository":{"id":60775098,"uuid":"378793940","full_name":"Datamart/lzw-compressor","owner":"Datamart","description":"🗜️ LZW compressor module from Glize library.","archived":false,"fork":false,"pushed_at":"2021-11-21T00:51:53.000Z","size":17,"stargazers_count":6,"open_issues_count":0,"forks_count":11,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-13T03:36:37.043Z","etag":null,"topics":["glize-library","javascript","lzw-compressor"],"latest_commit_sha":null,"homepage":"https://glize.js.org","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Datamart.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":["Datamart"],"custom":["https://www.paypal.me/vpodk","https://amzn.to/3mpgAJh"]}},"created_at":"2021-06-21T03:19:04.000Z","updated_at":"2024-05-18T16:42:21.000Z","dependencies_parsed_at":"2022-10-04T16:16:45.953Z","dependency_job_id":null,"html_url":"https://github.com/Datamart/lzw-compressor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Datamart%2Flzw-compressor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Datamart%2Flzw-compressor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Datamart%2Flzw-compressor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Datamart%2Flzw-compressor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Datamart","download_url":"https://codeload.github.com/Datamart/lzw-compressor/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244695633,"owners_count":20494848,"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":["glize-library","javascript","lzw-compressor"],"created_at":"2025-03-20T21:58:01.141Z","updated_at":"2025-03-20T21:58:01.738Z","avatar_url":"https://github.com/Datamart.png","language":"JavaScript","funding_links":["https://github.com/sponsors/Datamart","https://www.paypal.me/vpodk","https://amzn.to/3mpgAJh"],"categories":[],"sub_categories":[],"readme":"# LZW Compressor [![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=LZW%20compressor%20module%20from%20Glize%20library.\u0026url=https://glize.js.org\u0026via=GitHub\u0026hashtags=Glize,JavaScript,ECMAScript,ES6)\n[![Build Status](https://github.com/Datamart/lzw-compressor/actions/workflows/npm-publish.yml/badge.svg)](https://github.com/Datamart/lzw-compressor/actions/workflows/npm-publish.yml) [![License](https://img.shields.io/:license-apache-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0.html) [![NPM version](https://img.shields.io/npm/v/lzw-compressor.svg?style=flat)](https://npmjs.org/package/lzw-compressor) [![Website](https://img.shields.io/website-up-down-green-red/https/glize.js.org.svg?style=flat)](https://glize.js.org) [![NPM downloads](https://img.shields.io/npm/dm/lzw-compressor.svg?style=flat)](https://npmjs.org/package/lzw-compressor)\n\nLZW compressor module from Glize library.\n\n## Usage\n\n```bash\nnpm install lzw-compressor --save\n```\n\n```js\nimport { compress, decompress } from 'lzw-compressor';\n\n/**\n * Compress data string using LZW lossless data compression algorithm.\n * @param {string} str Data to compress.\n * @return {string} Returns compressed data.\n */\nconst encoded = compress(input);\n\n/**\n * Decompress data string compressed with the LZW algorithm.\n * @param {string} str Data to compress.\n * @return {string} Returns compressed data.\n */\nconst decoded = decompress(encoded);\n```\n\nFor more information please visit [Glize project page](https://glize.js.org).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatamart%2Flzw-compressor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdatamart%2Flzw-compressor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdatamart%2Flzw-compressor/lists"}