Skip to content

Commit

Permalink
✏️ add new lines in between
Browse files Browse the repository at this point in the history
  • Loading branch information
astoilkov committed Jul 26, 2024
1 parent 9e2d632 commit 15da7a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ npm install {{data.name}}
import { graphemeAt, graphemeRangeAt, wordAt, wordRangeAt } from "segmenter";

graphemeAt("👨‍🔧️ the fixer", 3); // 👨‍🔧️

graphemeRangeAt("👨‍🔧️ the fixer", 3); // { start: 0, end: 6 }

wordAt("hello-world"); // "hello"

wordRangeAt("hello-world"); // { start: 0, end: 5 }
```

Expand Down

0 comments on commit 15da7a1

Please sign in to comment.