docs(README): add `version` into the examples (#95)

This commit is contained in:
Hammy 2024-09-21 03:28:44 +01:00 committed by GitHub
parent 54cd9651cb
commit cf9cb5c443
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 8 additions and 2 deletions

View File

@ -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);
@ -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);