cbor-js
cbor-js copied to clipboard
Add `tagger` function argument for encode
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.