You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that IReaderBase and subtypes define a method called peak(), which probably more appropriately would be called peek(). Although I don't know what the backwards compatibility strategy is for this library, so I thought I would just create an issue for this rather than a PR. Also, I am aware that there are already downstream libraries like json-pack which build on this. Maybe it would make most sense to just deprecate peak().
Background: While in search for a good CBOR library that fits my requirements (allow for synchronous calls as well as low-level SAX-style event processing) I stumbled across json-pack, which fits my bill very nicely. I had a bit of a hard time figuring out how to use it properly, as documentation is very sparse. In the context of a Node application I figured the easiest way to decode CBOR is to construct a new CborDecoder and then call decoder.reader.reset(buffer) on it.
The text was updated successfully, but these errors were encountered:
I noticed that
IReaderBase
and subtypes define a method calledpeak()
, which probably more appropriately would be calledpeek()
. Although I don't know what the backwards compatibility strategy is for this library, so I thought I would just create an issue for this rather than a PR. Also, I am aware that there are already downstream libraries likejson-pack
which build on this. Maybe it would make most sense to just deprecatepeak()
.Background: While in search for a good CBOR library that fits my requirements (allow for synchronous calls as well as low-level SAX-style event processing) I stumbled across
json-pack
, which fits my bill very nicely. I had a bit of a hard time figuring out how to use it properly, as documentation is very sparse. In the context of a Node application I figured the easiest way to decode CBOR is to construct a newCborDecoder
and then calldecoder.reader.reset(buffer)
on it.The text was updated successfully, but these errors were encountered: