Constructor
new Diagnose(optionsopt)
- Description:
- Creates an instance of Diagnose.
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
options |
DiagnoseOptions |
<optional> |
{}
|
Options for creation. |
Extends
- stream.Transform
Methods
(static) diagnose(input, optionsopt, cbopt) → {Promise}
- Description:
- Convenience function to return a string in diagnostic format.
- Source:
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
input |
BufferLike | The CBOR bytes to format. | ||
options |
DiagnoseOptions | diagnoseCallback | string |
<optional> |
{}
|
Options, the callback, or the input encoding. |
cb |
diagnoseCallback |
<optional> |
null
|
Callback. |
Throws:
-
Input not provided.
- Type
- TypeError
Returns:
If callback not specified.
- Type
- Promise