docs(README): add `version` into the examples (#95)
This commit is contained in:
parent
54cd9651cb
commit
cf9cb5c443
10
README.md
10
README.md
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue