Skip to content

Commit cf9cb5c

Browse files
authoredSep 21, 2024··
docs(README): add version into the examples (#95)
1 parent 54cd965 commit cf9cb5c

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed
 

‎README.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,12 @@ npm install @catppuccin/palette
2121
```
2222

2323
```ts
24-
import { flavors, flavorEntries } from "@catppuccin/palette";
24+
import { flavors, flavorEntries, version } from "@catppuccin/palette";
2525
import chalk from "chalk";
2626

27+
// a string containing the version of the library
28+
console.log(version)
29+
2730
// an object containing all catppuccin flavors
2831
console.log(flavors);
2932

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

5154
```ts
52-
import { flavors, flavorEntries } from "https://deno.land/x/catppuccin/mod.ts";
55+
import { flavors, flavorEntries, version } from "https://deno.land/x/catppuccin/mod.ts";
5356
import { bgRgb24 } from "https://deno.land/std/fmt/colors.ts";
5457

58+
// a string containing the version of the library
59+
console.log(version)
60+
5561
// an object containing all catppuccin flavors
5662
console.log(flavors);
5763

0 commit comments

Comments
 (0)
Please sign in to comment.