{"id":17750681,"url":"https://github.com/steelbrain/redis-proto","last_synced_at":"2025-04-01T18:31:06.463Z","repository":{"id":29854758,"uuid":"33399665","full_name":"steelbrain/redis-proto","owner":"steelbrain","description":"Redis Protocol Encode/Decode in NodeJS","archived":false,"fork":false,"pushed_at":"2018-12-13T16:20:01.000Z","size":78,"stargazers_count":4,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T06:47:04.276Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/steelbrain.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}},"created_at":"2015-04-04T08:51:40.000Z","updated_at":"2021-08-09T05:31:15.000Z","dependencies_parsed_at":"2022-09-18T10:53:03.561Z","dependency_job_id":null,"html_url":"https://github.com/steelbrain/redis-proto","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steelbrain%2Fredis-proto","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steelbrain%2Fredis-proto/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steelbrain%2Fredis-proto/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/steelbrain%2Fredis-proto/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/steelbrain","download_url":"https://codeload.github.com/steelbrain/redis-proto/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246635983,"owners_count":20809333,"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":[],"created_at":"2024-10-26T12:23:18.661Z","updated_at":"2025-04-01T18:31:06.205Z","avatar_url":"https://github.com/steelbrain.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Redis-Proto\n==========\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/steelbrain/redis-proto.svg)](https://greenkeeper.io/)\n\nA super-lightweight Redis Protocol Encoder and Decoder in Javascript.\n\n## Installation\n\n```\nnpm install --save redis-proto\n```\n\n## Usage\n\n```js\nimport { encode, decode, decodeGen } from 'redis-proto'\n\nconst encoded = encode(['SET', 'KEY', 'VALUE'])\nconst decoded = decode(encoded)\n\nconsole.log(decoded[0]) // ['SET', 'KEY', 'VALUE']\n\nfor (const entry of decodeGen(encoded)) {\n  console.log('entry', entry) // ['SET', 'KEY', 'VALUE']\n}\n```\n\n\n## API\n\n```js\nexport function encode(request: any): string\nexport function decode(content: Buffer | string): Array\u003cany\u003e\nexport function *decodeGen(content: Buffer | string): Generator\u003cany, void, void\u003e\n\n```\n\n## License\nThis project is licensed under the terms of MIT License. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteelbrain%2Fredis-proto","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteelbrain%2Fredis-proto","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteelbrain%2Fredis-proto/lists"}