{"id":20468491,"url":"https://github.com/butlermatt/msgpack2","last_synced_at":"2025-04-13T10:26:03.354Z","repository":{"id":56834995,"uuid":"148648481","full_name":"butlermatt/msgpack2","owner":"butlermatt","description":"Dart 1.x and 2.x implementation of MessagePack","archived":false,"fork":false,"pushed_at":"2019-01-22T17:40:10.000Z","size":42,"stargazers_count":12,"open_issues_count":6,"forks_count":7,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T01:48:07.119Z","etag":null,"topics":["dart","dartlang","messagepack","msgpack"],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/butlermatt.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-09-13T14:16:20.000Z","updated_at":"2025-01-17T17:08:10.000Z","dependencies_parsed_at":"2022-09-02T03:51:01.754Z","dependency_job_id":null,"html_url":"https://github.com/butlermatt/msgpack2","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/butlermatt%2Fmsgpack2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/butlermatt%2Fmsgpack2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/butlermatt%2Fmsgpack2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/butlermatt%2Fmsgpack2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/butlermatt","download_url":"https://codeload.github.com/butlermatt/msgpack2/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248697056,"owners_count":21147252,"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":["dart","dartlang","messagepack","msgpack"],"created_at":"2024-11-15T14:05:41.770Z","updated_at":"2025-04-13T10:26:03.327Z","avatar_url":"https://github.com/butlermatt.png","language":"Dart","readme":"# MsgPack for Dart\n[![Build Status](https://travis-ci.org/butlermatt/msgpack2.svg?branch=master)](https://travis-ci.org/butlermatt/msgpack2)\n\nA full-featured MsgPack library for Dart 1.x and 2.x.\n\n## Attribution\n\nThis package was originally forked from [msgpack](https://pub.dartlang.org/packages/msgpack). Due to the number of \nincompatible refactorings and loss of backwards compatibility, the decision was made to spin it off as a new package.\nThis package contains numerous enhancements over the original MsgPack implementation which should help with performance\nin many places (see [benchmarks](benchmarks.md)), as well as a more complete testing suite.\n\n## Usage\n\n\nBecause this project relies on Dart Libraries which contain inconsistencies between\nDart 1.x and Dart 2.x, there are two versions of the this package maintained.\n\nIf you want to use this package for Dart projects with Dart 2.x, please ensure your\nversion dependencies are set to:\n\n```yaml\n  dependencies:\n    msgpack2: ^2.0.0\n``` \n\nIf you want to use this package for Dart projects with Dart 1.x, please ensure your\nversion dependencies are set to:\n\n```yaml\n  dependencies:\n    msgpack2: ^1.0.0\n```\n\n## Simple Example\n\n```dart\nimport \"dart:typed_data\";\n\nimport \"package:msgpack/msgpack.dart\";\n\nmain() {\n  var binary = new Uint8List.fromList(\n    new List\u003cint\u003e.generate(40, (int i) =\u003e i)\n  ).buffer.asByteData();\n\n  var data = {\n    \"String\": \"Hello World\",\n    \"Integer\": 42,\n    \"Double\": 45.29,\n    \"Integer List\": [1, 2, 3],\n    \"Binary\": binary,\n    \"Map\": {\n      1: 2,\n      3: 4\n    }\n  };\n\n  List\u003cint\u003e packed = pack(data);\n  Map unpacked = unpack(packed);\n\n  print(unpacked);\n}\n```\n\nmsgpack.org[dart-msgpack2]\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbutlermatt%2Fmsgpack2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbutlermatt%2Fmsgpack2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbutlermatt%2Fmsgpack2/lists"}