-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
123 additions
and
45 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,15 +15,15 @@ | |
"$fresh/": "https://deno.land/x/[email protected]/", | ||
"preact": "https://esm.sh/[email protected]", | ||
"preact/": "https://esm.sh/[email protected]/", | ||
"fuse": "npm:[email protected]", | ||
"@preact/signals": "https://esm.sh/*@preact/[email protected]", | ||
"@preact/signals-core": "https://esm.sh/*@preact/[email protected]", | ||
"tailwindcss": "npm:[email protected]", | ||
"tailwindcss/": "npm:/[email protected]/", | ||
"tailwindcss/plugin": "npm:/[email protected]/plugin.js", | ||
"tailwindcss/typography": "npm:@tailwindcss/[email protected]", | ||
"$std/dotenv/load.ts": "jsr:@std/[email protected]/load", | ||
"$std/path/posix": "jsr:@std/[email protected]/posix", | ||
"$std/path/join": "jsr:@std/[email protected]/join", | ||
"$std/path/": "jsr:@std/[email protected]/", | ||
"$std/front-matter": "jsr:@std/[email protected]", | ||
"tabler_icons_tsx/": "https://deno.land/x/[email protected]/tsx/", | ||
"$gfm": "jsr:@deno/[email protected]" | ||
|
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
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,71 @@ | ||
# Console API Reference | ||
|
||
The `console` module provides a simple debugging console that is similar to the JavaScript console mechanism provided by web browsers. | ||
|
||
## Methods | ||
|
||
The Console API provides the following methods: | ||
|
||
- [log](#log) | ||
- [debug](#debug) | ||
- [warn](#warn) | ||
- [error](#error) | ||
- [info](#info) | ||
- [assert](#assert) | ||
- [clear](#clear) | ||
|
||
### log | ||
|
||
```ts | ||
console.log("Hello", "World"); | ||
``` | ||
|
||
Prints a message to the console. | ||
|
||
### debug | ||
|
||
```ts | ||
console.debug("Hello", "World"); | ||
``` | ||
|
||
Prints a message to the console with the log level set to `Debug`. | ||
|
||
### warn | ||
|
||
```ts | ||
console.warn("Hello", "World"); | ||
``` | ||
|
||
Prints a message to the console with the log level set to `Warn`. | ||
|
||
### error | ||
|
||
```ts | ||
console.error("Hello", "World"); | ||
``` | ||
|
||
Prints a message to the console with the log level set to `Error`. | ||
|
||
### info | ||
|
||
```ts | ||
console.info("Hello", "World"); | ||
``` | ||
|
||
Prints a message to the console with the log level set to `Info`. | ||
|
||
### assert | ||
|
||
```ts | ||
console.assert(true, "Hello", "World"); | ||
``` | ||
|
||
Prints a message to the console with the log level set to `Error` if the first argument is `false`. | ||
|
||
### clear | ||
|
||
```ts | ||
console.clear(); | ||
``` | ||
|
||
Clears the 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
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