cbor-js icon indicating copy to clipboard operation
cbor-js copied to clipboard

Add `tagger` function argument for encode

Open geraintluff opened this issue 1 year ago • 0 comments

This optional function lets you return a {tag: N, value: replacement} object for types which can be encoded with tags.

I needed this for encoding typed arrays (RFC 8949), not just decoding them.

geraintluff avatar Oct 30 '24 14:10 geraintluff