summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/console.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/polyfills/console.ts')
-rw-r--r--ext/node/polyfills/console.ts33
1 files changed, 33 insertions, 0 deletions
diff --git a/ext/node/polyfills/console.ts b/ext/node/polyfills/console.ts
new file mode 100644
index 000000000..bfc9be051
--- /dev/null
+++ b/ext/node/polyfills/console.ts
@@ -0,0 +1,33 @@
+// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
+
+import { Console } from "internal:deno_node/polyfills/internal/console/constructor.mjs";
+
+export default Object.assign({}, console, { Console });
+
+export { Console };
+export const {
+ assert,
+ clear,
+ count,
+ countReset,
+ debug,
+ dir,
+ dirxml,
+ error,
+ group,
+ groupCollapsed,
+ groupEnd,
+ info,
+ log,
+ profile,
+ profileEnd,
+ table,
+ time,
+ timeEnd,
+ timeLog,
+ timeStamp,
+ trace,
+ warn,
+} = console;
+// deno-lint-ignore no-explicit-any
+export const indentLevel = (console as any)?.indentLevel;