From ca55ef1c992a6ef1192a2833c73a484c62fcad7c Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Sat, 2 Nov 2024 16:53:59 +0700 Subject: [PATCH] feat: stylize --- vm.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/vm.js b/vm.js index b14e16c..88bd695 100644 --- a/vm.js +++ b/vm.js @@ -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 + } + ) } })