{"id":22693314,"url":"https://github.com/softvisio-node/msgpack","last_synced_at":"2025-04-13T00:11:09.283Z","repository":{"id":57161344,"uuid":"373385547","full_name":"softvisio-node/msgpack","owner":"softvisio-node","description":null,"archived":false,"fork":false,"pushed_at":"2024-12-22T10:19:23.000Z","size":140,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T21:43:32.856Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/softvisio-node.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"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-06-03T04:57:37.000Z","updated_at":"2024-12-22T10:19:27.000Z","dependencies_parsed_at":"2024-04-15T22:35:06.155Z","dependency_job_id":"eff6b143-7955-45bf-bb9d-d3f7baf0edda","html_url":"https://github.com/softvisio-node/msgpack","commit_stats":null,"previous_names":[],"tags_count":81,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softvisio-node%2Fmsgpack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softvisio-node%2Fmsgpack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softvisio-node%2Fmsgpack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softvisio-node%2Fmsgpack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/softvisio-node","download_url":"https://codeload.github.com/softvisio-node/msgpack/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248647297,"owners_count":21139086,"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-12-10T02:10:07.841Z","updated_at":"2025-04-13T00:11:09.270Z","avatar_url":"https://github.com/softvisio-node.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- !!! DO NOT EDIT, THIS FILE IS GENERATED AUTOMATICALLY !!!  --\u003e\n\n\u003e :information_source: Please, see the full project documentation here:\u003cbr\u003e\u003chttps://softvisio-node.github.io/msgpack/\u003e\n\n# Introduction\n\nFork of the `notepack.io` with improvements:\n\n- Code optimizations.\n- Streaming decoder.\n- {Date} encoded with the standard msgpack protocol extension (breaking change).\n- {BigInt} type support.\n\n## Install\n\n```sh\nnpm install @softvisio/msgpack\n```\n\n## Usage\n\n```javascript\nimport * as msgpack from \"@softvisio/msgpack\";\n\nconst buffer = msgpack.encode( [ new Date() ] );\n\nconst data = msgpack.decode( buffer );\n```\n\n### msgpack.encode( data, encoding? )\n\n- `data` {any} Data structire to encode.\n- `encoding?` {string} Return string in the specified encoding.\n- Returns: {Buffer|string} Encoded data. Returns {string} if `encoding` parameter is provided.\n\n### msgpack.decode( data, encoding? )\n\n- `data` {Buffer|ArrayBuffer|Uint8Array|string} Data to decode.\n- `encoding?` {string} String encoding if `data` parameter is {string}.\n- Returns: {any} Decoded data.\n\nThrows error if unable to decode message.\n\n### msgpack.decodeStream( data, offset )\n\n- `data` {Buffer|ArrayBuffer|Uint8Array|string} Data to decode.\n- `offset?` {integer} Offset of the message start in the passed data. **Default:** `0`.\n- Returns: {Object}:\n    - `value` {any} Decoded data.\n    - `offset` {integer} Offset of the decoded message end in the passed data.\n\nReturns {undefined} if message is incomplete.\n\nThrows error if unable to decode message.\n\n## Custom extensions\n\nSpecification \u003chttps://github.com/msgpack/msgpack/blob/master/spec.md\u003e.\n\n| Type          | Codes       |\n| ------------- | ----------- |\n| {undefined}   | `0xd4 0x00` |\n| {ArrayBuffer} | `0xc7 0x00` |\n|               | `0xc8 0x00` |\n|               | `0xc9 0x09` |\n| {Date}        | `0xc7 0xff` |\n| {BigInt}      | `0xc7 0x01` |\n|               | `0xc8 0x01` |\n|               | `0xc9 0x01` |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftvisio-node%2Fmsgpack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoftvisio-node%2Fmsgpack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoftvisio-node%2Fmsgpack/lists"}