You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
buffer.INSPECT_MAX_BYTES#
Added in: v0.5.4
<integer> Default: 50
Returns the maximum number of bytes that will be returned when buf.inspect() is called. This can be overridden by user modules. See util.inspect() for more details on buf.inspect() behavior.
Note that this is a property on the buffer module returned by require('buffer'), not on the Buffer global or a Buffer instance.
I think the inspect is deprecated in favour of the nodejs.util.inspect.custom symbol.
See nodejs/node#15549
I don't think we should add that method at this point.
If you know how to fix the issue, make a pull request instead.
@types/xxxx
package and had problems.Definitions by:
inindex.d.ts
) so they can respond.@jkomyno
@a-tarasyuk
@alvis
@r3nya
@btoueg
@BrunoScheufler
@smac89
@tellnes
@Touffy
@DeividasBakanas
@eyqs
@Flarna
@Hannes-Magnusson-CK
@KSXGitHub
@hoo29
@kjin
@ajafff
@islishude
@mwiktorczyk
@matthieusieben
@mohsen1
@n-e
@octo-sniffle
@parambirs
@eps1lon
@SimonSchick
@ThomasdenH
@WilcoBakker
@wwwy3y3
@ZaneHannanAU
@jeremiergz
@samuela
@kuehlein
If you do not mention the authors the issue will be ignored.
Search Terms: Buffer inspect
The Buffer interface is missing the
inspect()
function:https://nodejs.org/docs/latest/api/util.html#util_util_inspect_object_options
I agree that it is not well documented. :)
This is how
console.log()
printsBuffer
Also mentioned in SO:
https://stackoverflow.com/questions/21179524/how-to-convert-node-buffer-to-string-like-console-log-show
The text was updated successfully, but these errors were encountered: