From cf9cb5c443a29542940952b70d7b17b4dd83f80c Mon Sep 17 00:00:00 2001 From: Hammy <58985301+sgoudham@users.noreply.github.com> Date: Sat, 21 Sep 2024 03:28:44 +0100 Subject: [PATCH] docs(README): add `version` into the examples (#95) --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 31dd1c7..087870e 100644 --- a/README.md +++ b/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);