new Diagnose()
Output the diagnostic format from a stream of CBOR bytes.
Extends
- stream.Transform
Classes
Methods
-
<static> diagnose(input [, encoding], cb)
-
Convenience function to return a string in diagnostic format.
Parameters:
Name Type Argument Default Description inputBuffer | string the CBOR bytes to format encodingstring <optional>
'hex' the encoding of input, ignored if input is Buffer cbcommentCallback callback Returns:
if callback not specified- Type
- Promise