8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 817626f commit 2bb5813Copy full SHA for 2bb5813
examples/sample.ts
@@ -0,0 +1,14 @@
1
+import { consola } from "../src";
2
+
3
+async function main() {
4
+ consola.info("Using consola 3.0.0");
5
+ consola.start("Building project...");
6
+ consola.warn("A new version of consola is available: 3.0.1");
7
+ consola.success("Project built!");
8
+ consola.error(new Error("This is an example error. Everything is fine!"));
9
+ await consola.prompt("Deploy to the production?", {
10
+ type: "confirm",
11
+ });
12
+}
13
14
+main();
0 commit comments