@logtape/pretty
Version:
Beautiful text formatter for LogTape—perfect for local development
18 lines (17 loc) • 464 B
JavaScript
//#region src/util.deno.ts
function inspect(obj, options) {
if ("Deno" in globalThis) return Deno.inspect(obj, {
colors: options?.colors,
depth: options?.depth ?? void 0,
compact: options?.compact ?? true,
getters: options?.getters,
showProxy: options?.showProxy
});
else {
const indent = options?.compact === true ? void 0 : 2;
return JSON.stringify(obj, null, indent);
}
}
//#endregion
export { inspect };
//# sourceMappingURL=util.deno.js.map