add log-pretty because i'm tired of writing this a lot
This commit is contained in:
12
src/helpers/log-pretty.ts
Normal file
12
src/helpers/log-pretty.ts
Normal 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,
|
||||||
|
}),
|
||||||
|
)
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user