Skip to content

Commit

Permalink
fix: updated examples in the readme
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNaubit committed May 20, 2024
1 parent d619e48 commit 49d0633
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@ npm install --save @nauverse/color-to-hsla

### 2. Checking this example of use:
~~~ts
import { colorToHSLA } from "@nauverse/color-to-hsla";
import { colorToHSLA, hslaToString } from "@nauverse/color-to-hsla";

const myHSLAColor = colorToHSLA("#ff0000"); // { h: 0, s: 1, l: 0.5, a: 1 }
const myHSLAString = hslaToString(myHSLAColor); // "hsla(0, 100%, 50%, 1)"
~~~

If you want to see more examples, jump to [here](#guide-and-examples).
Expand Down

0 comments on commit 49d0633

Please sign in to comment.