We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f5614f commit 10ecf82Copy full SHA for 10ecf82
examples/colors.res
@@ -0,0 +1,10 @@
1
+// see https://deno.land/std/examples/colors.ts
2
+
3
+@scope("import.meta") @val
4
+external main: bool = "main"
5
6
+if main {
7
+ open RescriptDeno.Std.Fmt.Color
8
9
+ "Hello world!"->bold->red->italic->bgBlue->Js.log
10
+}
src/RescriptDeno_Std_Fmt_Color.res
@@ -10,6 +10,9 @@ external setEnabled: bool => unit = "setColorEnabled"
@module("https://deno.land/std/fmt/colors.ts")
11
external getEnabled: unit => bool = "getColorEnabled"
12
13
+@module("https://deno.land/std/fmt/colors.ts")
14
+external bold: string => string = "bold"
15
16
17
external reset: string => string = "reset"
18
0 commit comments