Constructor
new Diagnose(optionsopt)
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}
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:
- Type:
-
Promise
If callback not specified.