add log-pretty because i'm tired of writing this a lot

This commit is contained in:
MapleLeaf
2021-12-26 11:55:45 -06:00
parent bfeb28eeb1
commit f8389cec52

12
src/helpers/log-pretty.ts Normal file
View File

@@ -0,0 +1,12 @@
import { inspect } from "node:util"
// eslint-disable-next-line import/no-unused-modules
export function logPretty(value: unknown) {
console.info(
inspect(value, {
// depth: Number.POSITIVE_INFINITY,
depth: 10,
colors: true,
}),
)
}