Skip to content

Commit

Permalink
docs(README): add version into the examples (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgoudham authored Sep 21, 2024
1 parent 54cd965 commit cf9cb5c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,12 @@ npm install @catppuccin/palette
```

```ts
import { flavors, flavorEntries } from "@catppuccin/palette";
import { flavors, flavorEntries, version } from "@catppuccin/palette";
import chalk from "chalk";

// a string containing the version of the library
console.log(version)

// an object containing all catppuccin flavors
console.log(flavors);

Expand All @@ -49,9 +52,12 @@ flavorEntries.map(([_, flavor]) => {
The library is available through [JSR](https://jsr.io/@catppuccin/palette) and [`deno.land/x/catppuccin`](https://deno.land/x/catppuccin):

```ts
import { flavors, flavorEntries } from "https://deno.land/x/catppuccin/mod.ts";
import { flavors, flavorEntries, version } from "https://deno.land/x/catppuccin/mod.ts";
import { bgRgb24 } from "https://deno.land/std/fmt/colors.ts";

// a string containing the version of the library
console.log(version)

// an object containing all catppuccin flavors
console.log(flavors);

Expand Down

0 comments on commit cf9cb5c

Please sign in to comment.