@std/text
Обзор
Вспомогательные функции для работы с текстом.
import { toCamelCase, compareSimilarity } from "@std/text";
import { assertEquals } from "@std/assert";
assertEquals(toCamelCase("snake_case"), "snakeCase");
const words = ["hi", "help", "hello"];
// Words most similar to "hep" will be at the front
assertEquals(words.sort(compareSimilarity("hep")), ["help", "hi", "hello"]);
Добавление в проект
›_
deno add jsr:@std/text
© 2018–2025 the Deno authors
Licensed under the MIT License.
https://docs.deno.com/runtime/reference/std/text