feat: stylize

This commit is contained in:
Chayapak 2024-11-02 16:53:59 +07:00
parent a61efe0388
commit ca55ef1c99
Signed by: ChomeNS
SSH key fingerprint: SHA256:0YoxhdyXsgbc0nfeB2N6FYE60mxMU7DS4uCUMaw2mvA

9
vm.js
View file

@ -66,7 +66,14 @@ parentPort.on('message', (msg) => {
nbt,
net,
axios,
inspect: (input, options) => util.inspect(input, { depth: options?.depth, customInspect: false })
inspect: (input, options) => util.inspect(
input,
{
depth: options?.depth,
customInspect: false,
stylize: options?.stylize === true ? stylize : undefined
}
)
}
})