Constructor
new Diagnose(optionsopt)
Creates an instance of Diagnose.
Parameters:
| Name | Type | Attributes | Default | Description | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
{} | options for creation
Properties
|
- Source:
Extends
- stream.Transform
Methods
(static) diagnose(input, encodingopt, cb) → {Promise}
Convenience function to return a string in diagnostic format.
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 |
- Source:
Returns:
if callback not specified
- Type
- Promise