stringifyBuffer

Stringifies the given buffer once for each encoding and adds the result a hash.

stringifyBuffer(buf: Buffer, encodings: Array<string>?): Object<string, string>
Parameters
buf (Buffer) the buffer to stringify
encodings (Array<string>?) the encodings to be used, if not supplied all valid encodings are used
Returns
Object<string, string>: a hash with a string value of the buffer for each of the supplied encodings

stringifyBuffer.encodings

Returns an array of all valid Buffer encodings that are supported. This is the same array that is used if no encodings is passed to @see stringifyBuffers.

stringifyBuffer.encodings
Returns
Array<string>: all valid Buffer encodings