{"id":15514634,"url":"https://github.com/fgasper/p5-cbor-pp","last_synced_at":"2025-03-28T19:21:11.487Z","repository":{"id":34873643,"uuid":"182294724","full_name":"FGasper/p5-CBOR-PP","owner":"FGasper","description":"CPAN’s CBOR::PP","archived":false,"fork":false,"pushed_at":"2022-06-15T16:42:04.000Z","size":41,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-02T20:49:26.403Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Perl","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/FGasper.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","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":"2019-04-19T16:32:13.000Z","updated_at":"2022-06-15T15:28:55.000Z","dependencies_parsed_at":"2022-09-16T00:11:03.005Z","dependency_job_id":null,"html_url":"https://github.com/FGasper/p5-CBOR-PP","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/FGasper%2Fp5-CBOR-PP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FGasper%2Fp5-CBOR-PP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FGasper%2Fp5-CBOR-PP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FGasper%2Fp5-CBOR-PP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FGasper","download_url":"https://codeload.github.com/FGasper/p5-CBOR-PP/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246085655,"owners_count":20721213,"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-02T10:00:19.326Z","updated_at":"2025-03-28T19:21:11.454Z","avatar_url":"https://github.com/FGasper.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NAME\n\nCBOR::PP - CBOR in pure Perl\n\n# SYNOPSIS\n\n    my $value = CBOR::PP::decode( $cbor );\n\n    my $tagged = CBOR::PP::tag( 123, 'value' );\n\n    my $cbor = CBOR::PP::encode( [ 'some', { data =\u003e $tagged } ] );\n\n    # canonical encoding\n    $cbor = CBOR::PP::encode(\n        { aa =\u003e 'last', a =\u003e 'first', z =\u003e 'middle' },\n        { canonical =\u003e 1 },\n    );\n\n# DESCRIPTION\n\nThis library implements a [CBOR](https://tools.ietf.org/html/rfc7049)\nencoder and decoder in pure Perl.\n\nThis module itself is a syntactic convenience. For details about what\nCBOR::PP can and can’t do, see the underlying [CBOR::PP::Encode](https://metacpan.org/pod/CBOR%3A%3APP%3A%3AEncode) and\n[CBOR::PP::Decode](https://metacpan.org/pod/CBOR%3A%3APP%3A%3ADecode) modules.\n\n# STATUS\n\nThis distribution is an experimental effort.\n\nThat having been said, CBOR is a simple enough encoding that I\nsuspect—I hope!—that bugs here will be few and far between.\n\nNote that, because [CBOR::Free](https://metacpan.org/pod/CBOR%3A%3AFree) is so much faster,\nthere probably won’t be much further effort put into this pure-Perl code.\n\nNote that this distribution’s interface can still change. If you decide\nto use CBOR::PP in your project, please always check the changelog before\nupgrading.\n\n# FRACTIONAL (FLOATING-POINT) NUMBERS\n\nFloating-point numbers are encoded in CBOR as IEEE 754 half-, single-,\nor double-precision. If your Perl is compiled to use “long double”\nfloating-point numbers, you may see rounding errors when converting\nto/from CBOR. If that’s a problem for you, append an empty string to\nyour floating-point numbers, which will cause CBOR::PP to encode\nthem as strings.\n\n# SEE ALSO\n\n[CBOR::Free](https://metacpan.org/pod/CBOR%3A%3AFree) is a **much** faster, XS-based encoder/decoder.\n\n[CBOR::XS](https://metacpan.org/pod/CBOR%3A%3AXS) isn’t quite as fast as CBOR::Free but is older and\n(as of this writing) more widely used. It’s also technically unsupported\non current Perl versions, though, and its GPL license makes it\nuseful only for open-source projects.\n\n# AUTHOR\n\n[Gasper Software Consulting](http://gaspersoftware.com) (FELIPE)\n\n# LICENSE\n\nThis code is licensed under the same license as Perl itself.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgasper%2Fp5-cbor-pp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffgasper%2Fp5-cbor-pp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffgasper%2Fp5-cbor-pp/lists"}