Skip to content

Commit

Permalink
chore: update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Apr 11, 2023
1 parent 0568e61 commit 6a5fb0c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,19 +27,19 @@
Using npm:

```bash
npm i consola@3x
npm i consola
```

Using yarn:

```bash
yarn add consola@3x
yarn add consola
```

Using pnpm:

```bash
pnpm i consola@3x
pnpm i consola
```

## Getting Started
Expand All @@ -63,7 +63,7 @@ await consola.prompt("Deploy to the production?", {

Will display in the terminal:

<img width="642" alt="image" src="https://user-images.githubusercontent.com/5158436/231028834-868bb4da-8d2e-487e-be31-851eaeffb915.png">
<img width="760" alt="image" src="https://user-images.githubusercontent.com/5158436/231029244-abc79f48-ca16-4eaa-b592-7abd271ecb1f.png">

## Methods

Expand Down
4 changes: 2 additions & 2 deletions examples/sample.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { consola } from "../src";

async function main() {
consola.warn("A new version of consola is available: 3.0.1");
consola.error(new Error("This is an example error. Everything is fine!"));
consola.info("Using consola 3.0.0");
consola.start("Building project...");
consola.warn("A new version of consola is available: 3.0.1");
consola.success("Project built!");
consola.error(new Error("This is an example error. Everything is fine!"));
await consola.prompt("Deploy to the production?", {
type: "confirm",
});
Expand Down

0 comments on commit 6a5fb0c

Please sign in to comment.