-
Notifications
You must be signed in to change notification settings - Fork 624
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(node): add console module (#892)
This just exports the `console` object. Note that Deno's console doesn't have all the same methods as Node's, so this isn't a perfect polyfill. Node has these extra properties: - `Console` - `context` - `profile` - `profileEnd` - `timeStamp`
- Loading branch information
1 parent
a0984a6
commit ebafcb6
Showing
3 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
export default console; | ||
|
||
export const { | ||
assert, | ||
clear, | ||
count, | ||
countReset, | ||
debug, | ||
dir, | ||
dirxml, | ||
error, | ||
group, | ||
groupCollapsed, | ||
groupEnd, | ||
info, | ||
log, | ||
table, | ||
time, | ||
timeEnd, | ||
timeLog, | ||
trace, | ||
warn, | ||
} = console; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters