Constructor
new Diagnose(optionsopt)
Creates an instance of Diagnose.
- Source:
Parameters:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object
|
<optional> |
{} |
options for creation
|
Extends
- stream.Transform
Methods
(static) diagnose(input, encodingopt, cb) → {Promise}
Convenience function to return a string in diagnostic format.
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
input |
Buffer
|
string
|
the CBOR bytes to format | ||
encoding |
string
|
<optional> |
'hex' | the encoding of input, ignored if input is Buffer |
cb |
commentCallback
|
callback |
Returns:
- Type:
-
Promise
if callback not specified