Home > deconstruct-js > string
Extracts a specific number of bytes and tries to decode them with the given encoding
Signature:
declare function string(bytes: number, encoding?: BufferEncoding): Deconstructor<string>;
Parameter | Type | Description |
---|---|---|
bytes | number |
|
encoding | BufferEncoding |
Returns:
Deconstructor<string>