ipld / js-dag-cbor

dag-cbor codec for IPLD
Other
27 stars 17 forks source link

feature request: export encode/decode -Options #112

Closed tabcat closed 7 months ago

tabcat commented 8 months ago

I want to use cborg.decodeFirst with the decodeOptions from this repo.

rvagg commented 8 months ago

reasonable, would you care to work up a PR to give it a go? shouldn't be too difficult I think, just add a new export for decodeFirst, do basically the same thing as for decode and then add a test or two to verify that it does the right thing