You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ A comprehensive library for [fractional indexing](https://www.figma.com/blog/rea
8
8
9
9
## Quick Start
10
10
11
-
```bash
11
+
```shell
12
12
# Install the package
13
13
npm install fraci
14
14
```
@@ -117,7 +117,7 @@ Run `bun run build-examples` to see the bundle sizes for each example.
117
117
118
118
## Installation
119
119
120
-
```bash
120
+
```shell
121
121
npm install fraci
122
122
123
123
# or
@@ -480,15 +480,15 @@ async function remove() {
480
480
481
481
Fractional indexing allows for inserting items between existing items without reindexing:
482
482
483
-
```plaintext
483
+
```text
484
484
A (index: "a") --- B (index: "c")
485
485
|
486
486
+--- New Item (index: "b")
487
487
```
488
488
489
489
When you need to insert between A and B, fraci generates a new index that sorts lexicographically between them. If you need to insert between A and the new item:
490
490
491
-
```plaintext
491
+
```text
492
492
A (index: "a") --- New Item (index: "b") --- B (index: "c")
0 commit comments