From f75306db0fc6ab6e0755128d062d7451266d4f0d Mon Sep 17 00:00:00 2001 From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Date: Thu, 22 Feb 2024 21:52:13 -0800 Subject: [PATCH] Update utils.md --- docs/api/utils.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api/utils.md b/docs/api/utils.md index 9c818caf21..e6ac3fee28 100644 --- a/docs/api/utils.md +++ b/docs/api/utils.md @@ -282,7 +282,7 @@ This is useful for: This API is designed to match the popular "string-width" package, so that existing code can be easily ported to Bun and vice versa. -[In this benchmark](https://github.com/oven-sh/bun/blob/a146856d119336cea0e294ffe1549b78e646c70b/bench/snippets/string-width.mjs#L1-L40), `Bun.stringWidth` is 1,000x faster than the `string-width` npm package for input larger than about 500 characters. Big thanks to [sindresorhus](https://github.com/sindresorhus) for their work on `string-width`! +[In this benchmark](https://github.com/oven-sh/bun/blob/5147c0ba7379d85d4d1ed0714b84d6544af917eb/bench/snippets/string-width.mjs#L13), `Bun.stringWidth` is 1,000x faster than the `string-width` npm package for input larger than about 500 characters. Big thanks to [sindresorhus](https://github.com/sindresorhus) for their work on `string-width`! ```ts ❯ bun string-width.mjs