diff --git a/readme.md b/readme.md index 2128217..161942e 100644 --- a/readme.md +++ b/readme.md @@ -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 } ```